From 1de3f19a2856d13b182962fe9eef5f655f6e75a5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 20 Feb 2021 21:53:48 +0100 Subject: Jenkins: lib: fix "Bad substitution" error on GitHub PR builds --- vars/buildPackage.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vars/buildPackage.groovy') 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' -- cgit v1.2.3