Skip to content

Commit e7adb51

Browse files
authored
Make the GitLab CI workflow work when triggered by tags (#2828)
1 parent 2cdee3f commit e7adb51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.gitlab/download-circleci_artifact.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ download_circleci_artifact() {
2424
ARTIFACT_PATTERN=$4 # "loader/modules/dd_library_loader.so"
2525
ARTIFACT_NAME=$5 # "dd_library_loader-x86_64-linux-gnu.so"
2626

27-
BRANCH=${CI_COMMIT_BRANCH} # Set by Gilab CI
28-
COMMIT_SHA=${CI_COMMIT_SHA} # Set by Gilab CI
27+
# Circle CI workflow is not triggered by tags,
28+
# So we fallback to the release branch (eg. "ddtrace-1.3.0")
29+
BRANCH=${CI_COMMIT_BRANCH:-"ddtrace-${CI_COMMIT_TAG}"} # Set by Gilab CI
30+
COMMIT_SHA=${CI_COMMIT_SHA} # Set by Gilab CI
2931

3032
PIPELINES=$(call_api "https://circleci.com/api/v2/project/${SLUG}/pipeline?branch=${BRANCH}")
3133

0 commit comments

Comments
 (0)