Cloud Build UCD integration not working.

I am posting this here because my cloud build is succeeding and pushing content to my UCD bucket and creating a release successfully.

Despite everything looking good using the URI for the bucket returns a 404 for all my asset paths. I have manually tested a get on these paths and gotten a 404.

This is happening for both release and “latest” badge URI.

I have tested a get on the same bucket with a release I manually created using the CLI and receive 200s.

It seems there is something silently broken with the integration.

That definitely doesn’t sound right. Would you mind posting your project ID or opening a support ticket?

Project ID: df6d139b-16f3-4d5d-82d6-0c91a67a3689
Bucket ID: 07303890-d090-4b3e-a16f-6134f6e006f4
Release 14 ID: bff05564-99b9-4ab3-bb8a-76ec9831b7ff

So it looks like there are files in the bucket, but it’s only a set of asset bundles, the manifest, and hash file. I was able to download a few of the files properly. Are you expecting the actual assets as well as the asset bundles?

Clicking the assets in the UI of UCD works. It is using a different API from the generated / badge API.

Using the UCD generated URIs for the assets does not for the Cloud Build Created release

Release 13 Manual CLI Created: 200 Response
https://df6d139b-16f3-4d5d-82d6-0c91a67a3689.client-api.unity3dusercontent.com/client_api/v1/buckets/07303890-d090-4b3e-a16f-6134f6e006f4/releases/81946763-a8a4-4a53-9cda-594b1800c849/entry_by_path/content/?path=catalog_2020.11.17.03.39.57.hash

Release 14 UCB Generated : 404
{“code”:5,“details”:[“release entry not found”],“reason”:“Not found”}
https://df6d139b-16f3-4d5d-82d6-0c91a67a3689.client-api.unity3dusercontent.com/client_api/v1/buckets/07303890-d090-4b3e-a16f-6134f6e006f4/releases/bff05564-99b9-4ab3-bb8a-76ec9831b7ff/entry_by_path/content/?path=catalog_2020.11.17.04.23.04.hash

Aha! Thanks for posting this. Figured it out. Cloud Build is including the directory structure:

ServerData/Android/Staging/catalog_2020.11.17.04.23.04.hash

Does your “Bundles Base Path” in Cloud Build’s Asset Bundle configuration include those directories?

I am using Addressables with this configuration. The LocalLoadPath and RemoteLoadPath both point to latest badge for my bucket.

So I am guessing I should remove the RemoteBuildPath entirely? I will try that.

Addressables won’t allow RemoteBuildPath to be unset. I got it to work by adding the remote build path to the end of the RemoteLoadPath URL.

Hey, we had the same issues. The reason was that the path to the actual asset bundle was prefixed with “ServerData/” when the addressables was uploaded to the target bucket, but the client tried to load it from path “Android/” or “iOS/”.

So the key to solve it was to add to the end of RemoteLoadPath “path=ServerData/[BuildTarget]”.
Previously it was “path=[BuildTarget]”

Hope this helps somebody.