Skip to content
Snippets Groups Projects
Commit 90f45c62 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

gitlab-ci: Handle authenticated access


When retrieving the artifacts, pass the job token so that things work
fine even for downstreams requiring authenticated access.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 729d5d18
No related branches found
No related tags found
1 merge request!10gitlab-ci: Parametrize the osname and handle authenticated access
Pipeline #321959 passed
......@@ -16,7 +16,7 @@ variables:
for BRANCH in $STABLE_BRANCHES $DEV_BRANCHES; do
echo "Retrieving archive for $BRANCH"
URL=$CI_API_V4_URL/projects/tests%2Fapertis-test-cases/jobs/artifacts/${osname}%2F${BRANCH}/download?job=render-pages
curl --fail --location --output $BRANCH.zip "$URL" && unzip -d public $BRANCH.zip || true
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --fail --location --output $BRANCH.zip "$URL" && unzip -d public $BRANCH.zip || true
done
set +x
- cp static/* public/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment