From 193c07e6fe99b5ff595f04bb04b3479ccf595223 Mon Sep 17 00:00:00 2001 From: Chase Qi <chase.qi@linaro.org> Date: Mon, 6 Dec 2021 14:28:51 +0800 Subject: [PATCH] ci: remove hard coded gitlab api root url in lava-report Signed-off-by: Chase Qi <chase.qi@linaro.org> --- .oniro-ci/test-generic.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml index 6536b93f..2951a889 100644 --- a/.oniro-ci/test-generic.yaml +++ b/.oniro-ci/test-generic.yaml @@ -26,10 +26,10 @@ && exit 1 ) script: # Build callback URL for the "report" job - - curl --silent "https://booting.oniroproject.org/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs?per_page=100" > jobs-manual.json + - curl --silent "$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)" - - CALLBACK_URL="https://git.ostc-eu.org/api/v4/projects/$CI_PROJECT_ID/jobs/${job_id}/play" + - CALLBACK_URL="$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/${job_id}/play" # Get the job definition from remote source. - curl --silent "$CI_LAVA_JOB_DEFINITION" > job_def.yaml # Update the job definition with CI data. -- GitLab