Commit 293a999d authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'patch-4' into 'master'

Update jobs.md to download artifacts with curl using `-L`

See merge request gitlab-org/gitlab-ee!5168
parents 4f5fc4d5 05e67955
...@@ -316,19 +316,19 @@ Example requests: ...@@ -316,19 +316,19 @@ Example requests:
- Using the `PRIVATE-TOKEN` header: - Using the `PRIVATE-TOKEN` header:
``` ```
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts" curl --location --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts"
``` ```
- Using the `JOB-TOKEN` header (only inside `.gitlab-ci.yml`): - Using the `JOB-TOKEN` header (only inside `.gitlab-ci.yml`):
``` ```
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts" curl --location --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts"
``` ```
- Using the `job_token` parameter (only inside `.gitlab-ci.yml`): - Using the `job_token` parameter (only inside `.gitlab-ci.yml`):
``` ```
curl --header --form "job-token=$CI_JOB_TOKEN" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts" curl --location --header --form "job-token=$CI_JOB_TOKEN" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts"
``` ```
Response: Response:
......
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