Travis CI: Uploading artifacts to S3 results in "The bucket you are attempting to access must be addressed using the specified endpoint"

Jon Burney

I have a Travis CI build that is configured to upload the build artifacts to S3. I've followed the Travis artifacts documentation but when the build completes I get the following error (and the S3 container is empty).

ERROR: failed to upload: /home/travis/build/jonburney/KingsgateMediaPlayer-Android/
app/build/outputs/apk/app-release-unsigned.apk

err: The bucket you are attempting to access must be addressed using the specified 
endpoint. Please send all future requests to this endpoint.

I have tried to specify the "endpoint" option in the configuration but it was ignored. It appears to be attempting to upload the file to

https://s3.amazonaws.com/kmp-build-output/jonburney/KingsgateMediaPlayer-Android/30/30.1/app/build/outputs/apk/app-release-unsigned.apk.

Here is a copy of the relevant section from my .travis.yml file

addons:
    artifacts: true
    s3_region: "us-west-2"
    artifacts:
        paths:
          - $(git ls-files -o app/build/outputs | tr "\n" ":")

Have I missed a configuration option for this scenario? Any help is appreciated!

Jon Burney

This was fixed after an email to the Travis-CI support team and some investigation. The code in my .travis.yml file was modified to ensure that "artifacts" was only present once, like so:

addons:
    artifacts:
        s3_region: "us-west-2"
        paths:
          - $(git ls-files -o app/build/outputs | tr "\n" ":")

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Update SQLite in travis CI

AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint

Travis CI. NetworkingError: CERT_UNTRUSTED error between Node.js and AWS S3 bucket

SShpass not allowed with Travis CI

The bucket you are attempting to access must be addressed using the specified endpoint , while uploading from jenkins to s3

Using Travis CI with Android

The bucket you are attempting to access must be addressed using the specified endpoint

S3 Copy artifacts with Jenkins pipeline

Build webpack on travis ci

Travis CI deploy to S3 bucket not working with secure keys

Gitlab ci artifacts not found

Chromedriver crashes on Travis CI

Heroku CI build artifacts

Uploading directly to S3

Groovy syntax - uploading artifacts

GitLab CI Build not uploading artifacts of codeception

How to publish Travis CI artifacts to GitHub Release from several jobs

GitHub Actions uploading and downloading artifacts

The bucket you are attempting to access must be addressed using the specified endpoint Uploading a file to AWS S3

Multiple Environments in Travis CI

Searchkick Failing on Travis CI

AWS::S3::PermanentRedirect in SongsController#index "The bucket you are attempting to access must be addressed using the specified endpoint"

Use ActiveMQ in Travis CI

Uploading an image to S3

Signing generated artifacts on Travis-CI

Travis-ci and Symfony3

Nexus Artifacts Uploading

Uploading artifacts to JFrog Artifactory

Is there a way to download compilation artifacts from a travis-ci build?