I can’t believe I am actually asking this, since it is the only purpose of a Cloud Build solution, but then again, it’s made by Unity.
How do I get the path to the actual build artifact so that I can automatically copy it to S3 or some other location? Before I start to dissect the build process by dumping all environment info and file system data into the logs, maybe there is some way that’s apparently not documented, how to get the artifacts?
UNITY_PLAYER_PATH_DATA → data folder for headless Linux builds
UNITY_PLAYER_PATH_MAIN_OBB → .obb file for Android builds when Split Application Binary is enabled. If there are more OBB’s with different suffixes, there will be more environment variables based on the suffix.
UNITY_PLAYER_PATH_ARCHITECTURE → APK file for each architecture in the Player Settings when the option Split APKs by target architecture is enabled. Example: UNITY_PLAYER_PATH_ARM64V8A
Thanks for pointing out that these are not well documented. I’ll pass on this information to the Documentation team for review.
Having the same issue. $UNITY_PLAYER_PATH does not point to a valid APK. The variable is not empty but the APK does not exist at the path it specifies.
What are you seeing it point to? Opening a support ticket through the Unity Cloud Build Dashboard can help us dig into this a little more and figure out what you are seeing for your specific builds.