mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Jenkins: lib: fix "Bad substitution" error on GitHub PR builds
This commit is contained in:
parent
74af0d9688
commit
1de3f19a28
@ -36,7 +36,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
|
|||||||
def branchName = getGitBranchName()
|
def branchName = getGitBranchName()
|
||||||
// Adjust PR target branch name so we can re-map it to the proper Docker image.
|
// Adjust PR target branch name so we can re-map it to the proper Docker image.
|
||||||
if (isPullRequest())
|
if (isPullRequest())
|
||||||
branchName = '${env.CHANGE_TARGET}'.toLowerCase()
|
branchName = env.CHANGE_TARGET.toLowerCase()
|
||||||
if (branchName.equals('master'))
|
if (branchName.equals('master'))
|
||||||
branchName = 'current'
|
branchName = 'current'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user