From 501a59ba334ef86aee19c6c755fb421b72931bb9 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 27 Dec 2019 15:57:45 +0100 Subject: Jenkins: support 'master' branch in Pipeline --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Jenkinsfile') 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 } } } -- cgit v1.2.3