Jenkins: lib: fix "Bad substitution" error on GitHub PR builds

This commit is contained in:
Christian Poessinger 2021-02-20 21:53:48 +01:00 committed by GitHub
parent 74af0d9688
commit 1de3f19a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'