diff options
-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 } } } |