Skip to content

Commit 9c0f550

Browse files
badetitougcotelli
andauthored
Rename env variable for GitLab build (#665)
* Rename env variable * Update helpers.sh I agree with that Co-authored-by: Gabriel Omar Cotelli <[email protected]> --------- Co-authored-by: Gabriel Omar Cotelli <[email protected]>
1 parent 5a2ee92 commit 9c0f550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ export_coveralls_data() {
490490
url="https://github.com/${APPVEYOR_REPO_NAME}.git"
491491
elif is_gitlabci_build; then
492492
branch_name="${CI_COMMIT_REF_NAME}"
493-
service_job_id="${CI_BUILD_ID}"
494-
service_job_number="${CI_BUILD_NAME}"
493+
service_job_id="${CI_JOB_ID:-CI_BUILD_ID}"
494+
service_job_number="${CI_JOB_NAME:-CI_BUILD_NAME}"
495495
service_name="gitlab-ci"
496496
service_pull_request="${CI_MERGE_REQUEST_IID:-}"
497497
url="${CI_PROJECT_URL}"

0 commit comments

Comments
 (0)