summaryrefslogtreecommitdiff
path: root/vars/buildPackage.groovy
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-20 21:53:48 +0100
committerGitHub <noreply@github.com>2021-02-20 21:53:48 +0100
commit1de3f19a2856d13b182962fe9eef5f655f6e75a5 (patch)
treea6d26fc57daf52a5f43e87dd209664ff000cafed /vars/buildPackage.groovy
parent74af0d96881efb0755b00ce080b9930ddd75a2d1 (diff)
downloadvyos-build-1de3f19a2856d13b182962fe9eef5f655f6e75a5.tar.gz
vyos-build-1de3f19a2856d13b182962fe9eef5f655f6e75a5.zip
Jenkins: lib: fix "Bad substitution" error on GitHub PR builds
Diffstat (limited to 'vars/buildPackage.groovy')
-rw-r--r--vars/buildPackage.groovy2
1 files changed, 1 insertions, 1 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index 7dc3fe52..53342ac9 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -36,7 +36,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
def branchName = getGitBranchName()
// Adjust PR target branch name so we can re-map it to the proper Docker image.
if (isPullRequest())
- branchName = '${env.CHANGE_TARGET}'.toLowerCase()
+ branchName = env.CHANGE_TARGET.toLowerCase()
if (branchName.equals('master'))
branchName = 'current'