Skip to content
Snippets Groups Projects
Commit a7f0fa48 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

Merge branch 'feature/ci-api-access' into 'master'

[ci] Use api read token for read access

See merge request !2655

(cherry picked from commit 45dd4182)
parent 422e6eae
No related branches found
No related tags found
1 merge request!2670Backport CI updates to release branch (test release branch)
...@@ -30,7 +30,7 @@ check-pipeline-status: ...@@ -30,7 +30,7 @@ check-pipeline-status:
when: always when: always
script: script:
- | - |
if ! python3 .gitlab-ci/getpipelineinfo.py --access-token $CI_JOB_TOKEN \ if ! python3 .gitlab-ci/getpipelineinfo.py --access-token $CI_JOB_API_READ_TOKEN \
--look-for HEAD \ --look-for HEAD \
--print-format pipeline-id; then --print-format pipeline-id; then
echo "No successful pipeline found. Triggering new pipeline..." echo "No successful pipeline found. Triggering new pipeline..."
......
...@@ -23,7 +23,7 @@ select tests: ...@@ -23,7 +23,7 @@ select tests:
- | - |
getLastSuccesful() { getLastSuccesful() {
python3 .gitlab-ci/getpipelineinfo.py \ python3 .gitlab-ci/getpipelineinfo.py \
--access-token $CI_JOB_TOKEN \ --access-token $CI_JOB_API_READ_TOKEN \
--look-for latest \ --look-for latest \
--print-format commit-sha --print-format commit-sha
} }
......
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