Hello,
We use Jenkins to make builds, and the build script includes a call to AddressableAssetSettings.BuildPlayerContent(). Sometimes this can fail (for example, due to a compilation error when it builds scripts). However, we had some cases where the build still continued, but addressables didn’t work in the final result. How can I check if the call to BuildPlayerContent() was successful?
Hey @isaac-ashdown so you might be able to hook into BuildScript.buildCompleted
which will get called with an AddressableAssetBuildResult object. You can check the Error string on that result object and if the string is null or empty it was a success, otherwise the build failed.
Hope that helps!
Thanks! Seems to work.
1 Like