Commit 6d4c7b9f authored by Damian Nowak's avatar Damian Nowak

Jobs: use curl --location to follow redirects

Required to fetch artifacts/logs if AWS is used as the storage backend.
parent 6686cd35
...@@ -491,7 +491,7 @@ Parameters ...@@ -491,7 +491,7 @@ Parameters
Example request: Example request:
```sh ```sh
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/5/artifacts/some/release/file.pdf" curl --location --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/5/artifacts/some/release/file.pdf"
``` ```
Possible response status codes: Possible response status codes:
...@@ -526,7 +526,7 @@ Parameters: ...@@ -526,7 +526,7 @@ Parameters:
Example request: Example request:
```sh ```sh
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/raw/some/release/file.pdf?job=pdf" curl --location --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/raw/some/release/file.pdf?job=pdf"
``` ```
Possible response status codes: Possible response status codes:
...@@ -551,7 +551,7 @@ GET /projects/:id/jobs/:job_id/trace ...@@ -551,7 +551,7 @@ GET /projects/:id/jobs/:job_id/trace
| job_id | integer | yes | ID of a job. | | job_id | integer | yes | ID of a job. |
```sh ```sh
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/8/trace" curl --location --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/8/trace"
``` ```
Possible response status codes: Possible response status codes:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment