Unity Cloud Build failing to Build

My companies Unity Cloud Build is able to connect to our perforce depot but is failing to build. We think it that is is failing to find the correct methods in the depot but are not sure. Below is a few of the error codes we are getting.

14: [Unity] -----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp.dll
15: [Unity] Compilation failed: 1 error(s), 0 warnings
16: [Unity] Assets/Scripts/Collectibles/JetPack.cs(12,24): error CS0246: The type or namespace name `Collectible’ could not be found. Are you missing a using directive or an assembly reference?

Hi there,

Can you confirm that the project is able to be built locally from the perforce depot? Errors such as the one you’ve posted are generally caused by assets not being available within the Unity project itself. Is it possible that there are files not checked into the depot, for example the ‘Collectible’ that’s being referenced in the error message?

We have been able to build the project locally. Additionally, we have uploaded the project to Perforce, downloaded it on another computer, then built successfully from there.

The errors only arise when we are building in the cloud.

We eventually figured it out and it was a bit of a silly issue.

It seems like Cloud Build was pointing towards a task stream instead of the mainline. As such there were missing files. We’ve changed that setting and now it seems to be working fine.

Thank you for the help.