diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml index ed4ff15bfac19522c9fed61480fccc6fba7f265e..95f517a1faf294837031554156bdfd0a781628c1 100644 --- a/.oniro-ci/test-generic.yaml +++ b/.oniro-ci/test-generic.yaml @@ -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)"