diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-27 15:57:45 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-27 15:57:45 +0100 |
commit | 501a59ba334ef86aee19c6c755fb421b72931bb9 (patch) | |
tree | 3199ff49c4bea4d002b211ea95a44880b94ba5a5 /Jenkinsfile | |
parent | 46384030f7634e24c839542ec9abc8b5254904b0 (diff) | |
download | vyos-1x-501a59ba334ef86aee19c6c755fb421b72931bb9.tar.gz vyos-1x-501a59ba334ef86aee19c6c755fb421b72931bb9.zip |
Jenkins: support 'master' branch in Pipeline
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 6 |
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 } } } |