Skip to content

Commit

Permalink
add master branch conditional, add again
Browse files Browse the repository at this point in the history
  • Loading branch information
stefkor committed Jul 22, 2022
1 parent 206143b commit 7099de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipeline {
stage('docker-package') {
agent any
when{

branch 'master'
changeset "**/worker/**"
}
steps {
Expand All @@ -67,7 +67,7 @@ pipeline {
def workerImage = docker.build("koleesch/worker:v${env.BUILD_ID}", "./worker")

workerImage.push()
workerImage.push("latest")
workerImage.push("${env.BRANCH_NAME}")
}
}
}
Expand Down

0 comments on commit 7099de3

Please sign in to comment.