summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-31 22:53:06 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-31 22:53:06 +0100
commit01241ae4a248fc82bc06e5f79ce554563d3a8512 (patch)
tree7b56036c257a283e615cbcaf97bc92ac071643cc
parent03c6dd6be4d63b818df0a3b60b13230d944843b7 (diff)
downloadlibvyosconfig-01241ae4a248fc82bc06e5f79ce554563d3a8512.tar.gz
libvyosconfig-01241ae4a248fc82bc06e5f79ce554563d3a8512.zip
Jenkins: select proper Docker container on master branch
-rw-r--r--Jenkinsfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index af31df0..5dcff21 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -73,7 +73,11 @@ node('Docker') {
stage('Define Agent') {
script {
// create container name on demand
- env.DOCKER_IMAGE = "vyos/vyos-build:" + getGitBranchName()
+ def branchName = getGitBranchName()
+ if (branchName == "master") {
+ branchName = "current"
+ }
+ env.DOCKER_IMAGE = "vyos/vyos-build:" + branchName
}
}
}