Whitelist a few more matrix parameter characters
Signed-off-by: Mark Vieira <portugee@gmail.com>
This commit is contained in:
parent
41c15b438d
commit
4d0358cf37
|
@ -37,7 +37,7 @@ buildScan {
|
||||||
// Parse job name in the case of matrix builds
|
// Parse job name in the case of matrix builds
|
||||||
// Matrix job names come in the form of "base-job-name/matrix_param1=value1,matrix_param2=value2"
|
// Matrix job names come in the form of "base-job-name/matrix_param1=value1,matrix_param2=value2"
|
||||||
def splitJobName = jobName.split('/')
|
def splitJobName = jobName.split('/')
|
||||||
if (splitJobName.length > 1 && splitJobName.last() ==~ /^([a-zA-Z0-9_\-]+=[a-zA-Z0-9_\-]+,?)+$/) {
|
if (splitJobName.length > 1 && splitJobName.last() ==~ /^([a-zA-Z0-9_\-]+=[a-zA-Z0-9_\-&\.]+,?)+$/) {
|
||||||
def baseJobName = splitJobName.dropRight(1).join('/')
|
def baseJobName = splitJobName.dropRight(1).join('/')
|
||||||
tag baseJobName
|
tag baseJobName
|
||||||
tag splitJobName.last()
|
tag splitJobName.last()
|
||||||
|
|
Loading…
Reference in New Issue