From 9c0f550639b5684797c6450182794d01e1ae03a4 Mon Sep 17 00:00:00 2001 From: Benoit Verhaeghe Date: Thu, 19 Dec 2024 22:27:40 +0100 Subject: [PATCH] Rename env variable for GitLab build (#665) * Rename env variable * Update helpers.sh I agree with that Co-authored-by: Gabriel Omar Cotelli --------- Co-authored-by: Gabriel Omar Cotelli --- helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.sh b/helpers.sh index 8c3f9f56..f589e8b0 100644 --- a/helpers.sh +++ b/helpers.sh @@ -490,8 +490,8 @@ export_coveralls_data() { url="https://github.com/${APPVEYOR_REPO_NAME}.git" elif is_gitlabci_build; then branch_name="${CI_COMMIT_REF_NAME}" - service_job_id="${CI_BUILD_ID}" - service_job_number="${CI_BUILD_NAME}" + service_job_id="${CI_JOB_ID:-CI_BUILD_ID}" + service_job_number="${CI_JOB_NAME:-CI_BUILD_NAME}" service_name="gitlab-ci" service_pull_request="${CI_MERGE_REQUEST_IID:-}" url="${CI_PROJECT_URL}"