Skip to content

Commit 5dbb7c8

Browse files
author
Eric Lorenzana
committed
feat(BUILD-2141): Replace curl command with actual artifactory CLI
This makes use of ARTIFACTORY_ACCESS_TOKEN instead of GITHUB_TOKEN.
1 parent 33532f7 commit 5dbb7c8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.cirrus.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ promote_task:
6969
cpu: 0.5
7070
memory: 500M
7171
env:
72-
GITHUB_TOKEN: VAULT[development/github/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-promotion token]
73-
script:
74-
- source cirrus-env PROMOTE
75-
- curl -sfSL -H "Authorization: Bearer $GCF_ACCESS_TOKEN" "$PROMOTE_URL/$GITHUB_REPO/$GITHUB_BRANCH/$BUILD_NUMBER/$PULL_REQUEST?multi=true"
76-
- burgr-notify-promotion
72+
ARTIFACTORY_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-promoter access_token]
73+
script: |
74+
source cirrus-env PROMOTE
75+
jfrog rt bpr \
76+
--url "${ARTIFACTORY_URL}" \
77+
--access-token "${ARTIFACTORY_ACCESS_TOKEN}" \
78+
--status it-passed \
79+
"${CIRRUS_REPO_NAME}" "${BUILD_NUMBER}" sonarsource-public-builds
80+
burgr-notify-promotion

0 commit comments

Comments
 (0)