diff --git a/Jenkinsfile b/Jenkinsfile index a1cacd1..1d99ec5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,8 +13,8 @@ def build_docker(dist, release_dir, is_testing) { if (env.DOCKER_PREFIX) { args += " --build-arg DOCKER_PREFIX=${env.DOCKER_PREFIX}/" } - if (env.GIT_LOCAL_BRANCH) { - args += " --build-arg BRANCH=${env.GIT_LOCAL_BRANCH}" + if (env.BRANCH_NAME) { + args += " --build-arg BRANCH=${env.BRANCH_NAME}" } args += " --build-arg IMAGE_FROM=${dist.docker_image}" args += " --build-arg LIBS_BUILD_NUMBER=${env.BUILD_NUMBER}" @@ -31,7 +31,7 @@ node { checkout scm } - def currentBranch = "${env.GIT_LOCAL_BRANCH}" + def currentBranch = "${env.BRANCH_NAME}" def is_testing = currentBranch.toLowerCase().contains("test") def pl = new org.SHS.Platforms(this)