Skip to content

Commit

Permalink
fix(pipeline): correct unstable publishing
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
  • Loading branch information
scealiontach committed Oct 22, 2020
1 parent eb3a1c9 commit dd1a868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ pipeline {
def scm_version = sh(returnStdout: true, script: "git describe --match 'v*' |cut -c 2-").trim()
def publish = false
echo " ${long_version} == ${scm_version} "
if (env.BRANCH_NAME == "master"){
if (env.BRANCH_NAME == "master") {
echo " === This is the master and an untagged version, publishing to unstable repo === "
S3_TARGET="btp-charts-unstable"
sh """
${DOCKER_RUN} -v `pwd`:/project -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -w /project/dist/local \
tools:${JOB_ID} -c "aws s3 sync . s3://${S3_TARGET}/charts"
Expand Down

0 comments on commit dd1a868

Please sign in to comment.