summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-27 15:57:45 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-27 15:57:45 +0100
commit501a59ba334ef86aee19c6c755fb421b72931bb9 (patch)
tree3199ff49c4bea4d002b211ea95a44880b94ba5a5 /Jenkinsfile
parent46384030f7634e24c839542ec9abc8b5254904b0 (diff)
downloadvyos-1x-501a59ba334ef86aee19c6c755fb421b72931bb9.tar.gz
vyos-1x-501a59ba334ef86aee19c6c755fb421b72931bb9.zip
Jenkins: support 'master' branch in Pipeline
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 225f4fce5..ed98477f2 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
}
}
}