Skip to content
Snippets Groups Projects
Commit 8c92fb81 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

Merge branch 'gitlab-api-token' into 'kirkstone'

.oniro-ci: call gitlab api with access token

See merge request !376
parents 018a6472 eeb8c4bf
No related branches found
No related tags found
1 merge request!376.oniro-ci: call gitlab api with access token
......@@ -50,7 +50,10 @@
fi
script:
# Build callback URL for the "report" job
- curl --silent "$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs?per_page=100" > jobs-manual.json
- |
curl --silent \
--header "PRIVATE-TOKEN: $GITLAB_API_TOKEN" \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs?per_page=100" > jobs-manual.json
- job_id="$(jq -r ".[] | select(.name == \"$CI_REPORT_JOB_NAME\") | .id" jobs-manual.json)"
- build_job_id="$(jq -r ".[] | select(.name == \"$CI_BUILD_JOB_NAME\") | .id" jobs-manual.json)"
- update_job_id="$(jq -r ".[] | select(.name == \"$CI_UPDATE_JOB_NAME\") | .id" jobs-manual.json)"
......
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