Skip to content

Commit 590fc3f

Browse files
authored
CON-1733 Jenkins deploy stage (#79)
Moved s3 deploy to separate stage.
1 parent b9b0e79 commit 590fc3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Jenkinsfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@ pipeline {
33
label 'master'
44
}
55

6+
environment {
7+
TARGET_BRANCH = 'master'
8+
}
9+
610
stages {
711
stage('Build') {
812
steps {
913
sh "docker pull golang"
1014
sh "docker run -t --rm -v ${WORKSPACE}:/go/src/cli -w /go/src/cli golang make"
15+
}
16+
}
17+
18+
stage('Deploy') {
19+
when {
20+
branch env.TARGET_BRANCH
21+
}
22+
steps {
1123
sh "aws-profile connectors-staging aws s3 cp ${WORKSPACE}/bin s3://smartling-connectors-releases/cli/ --recursive --acl public-read"
1224
}
1325
}

0 commit comments

Comments
 (0)