Hi,
I’m new to cloud build, and not a particular expert in unity or source control either, so maybe (probably,hopefully) i’m doing something stupid…
My attempts to cloud build are all failing, but when i look through the logs, there are no specific ‘errors’ recorded. There are plenty of warnings about deprecated commands in scripts and shaders (that I’m not using) but nothing that indicates the cause of the issue…
here is an excerpt from the end of the compact log, containing the only red/error bits:
154: [Unity] Player export failed. Reason: 2 errors
155: ! build of ‘frtestwin’ failed. compile failed
156: publishing finished successfully.
157: Finished: FAILURE
so it says 2 errors but there aren’t any errors in the compact log, and I’ve looked at the full log as much as i could endure (so i haven’t read every line but I’ve scanned it, looked for red markers, and searched for words like ‘error’).
I would put this all down to me doing something wrong with the source control config, however my initial builds did work. I had a pretty simple test scene (but with most of the basic functions, 3rd party assets and requirements in place) when i first setup the source control and then cloud build. The scenes built ok, they were just missing some textures and stuff (that i had left in some temp folders that i excluded from source control)…but this just demonstrates to me how the cloud build can adapt to some missing things anyway.
Since then I’ve created a new scene, updated and added assets and whatnot, and committed it all to source control…I’ve switched between branches in source control and the game will run in unity and i can build locally fine, so i’m pretty confident everything that’s needed is in the source control.
but still my builds fail.
I’ve tried clean builds, i’ve tried deleting and recreating the target builds, I’ve enabled and disabled the library cache. I’ve tried building to win32, win64 and webgl, i’ve tried building to specific versions of unity ( using the ‘latest’ 5.4, the 5.4 version to match my install, 5.3 version to match my previous install when i started the project etc.), I’ve tried building from the different branches in my source control. I’ve also tried specifically building the original test scene instead of my new scene, and it still fails, when nothing with it has really changed since it did build.
So I’m thoroughly confused. If anyone has any ideas or suggestions that would be great. Also, if there are any known constraints that could stop a build working, like say if a texture was over x MB or whatever, that would be handy to know as there could be stuff like that sitting in the folders of the example assets I’ve included…
If you’re still reading after all that, thanks for your time!