Search Unity

Cloudbuild and streaming assets pipeline problem with automated tests

Discussion in 'Asset Bundles' started by Anemor2000, Jul 23, 2019.

  1. Anemor2000

    Anemor2000

    Joined:
    Jun 12, 2015
    Posts:
    38
    Hi, we are using the following pipeline :
    1. Our Unity projects has all the necessary streaming assets on our machine, in the StreamingAssets folder. The StreamingAssets is added to the gitIgnore file so its only local, it's not pushed on our repo.

    2. All what needs to be in StreamingAssets is in an asset bundle called local. Cloudbuild is set to build this assetbundle and place it into the builds StreamingAssets folder.
      This works great, each platform gets his own Streaming Assets files at buildtime. I encourage everyone to set it up this way.

    3. Problems comes when we run automated tests in Cloudbuild. Since those tests happen before building, the Streaming Assets are missing, therefore causing the builds to fail. So, with automated test, our pipeline does not work
    Does anyone have a solution for that? If I put the StreamingAssets folder back in the build it will automatically bundle all assets for all platforms inside its folder, that's going to make the build heavier.

    Is there a way to tell CloudBuild to ONLY use its Assetbundle building setting and not, by default, build everything thats in the streaming assets folder?

    Thanks for anyone with a clue.
     
  2. Anemor2000

    Anemor2000

    Joined:
    Jun 12, 2015
    Posts:
    38
    Anyone?