Artifact Redirects Changes

In order to improve the performance of our artifacts hosting, we are rolling out a change that would make non-HTML artifacts on CircleCI redirect to a short-lived pre-signed cloud storage URL.

We currently allow JSON files to bypass this to ensure test suites that produce dashboards to view results are able to function correctly.

If using a web browser (to view HTML resources such as test / coverage reports or download tarballs / zip files) you will not need to change anything, as browsers follow redirects by default.

However, if you are using curl or another HTTP client that does not follow redirects by default, you will need to enable redirect support (wget follows redirects by default, while curl requires the -L switch).

For curl commands that don’t specify the -L option, you will now see the following message:

$ curl -H'Circle-Token: XXXXXX' 'https://9648-63890343-gh.circle-artifacts.com/0/sample/logs.txt' 

Redirecting to <https://circle-production-customer-artifacts.s3.amazonaws.com/...>

Adding the -L switch will make the artifact get fetched correctly:

$ curl -L -H'Circle-Token: XXXXXX' 'https://9648-63890343-gh.circle-artifacts.com/0/sample/logs.txt'
some logs......

Keep in mind that this change only affects non-HTML artifacts. All HTML files will still be served without a redirect.

Was this article helpful?
1 out of 2 found this helpful

Comments

0 comments

Article is closed for comments.