Whitelist a few more matrix parameter characters

Signed-off-by: Mark Vieira <portugee@gmail.com>
This commit is contained in:
Mark Vieira 2020-01-21 15:16:29 -08:00
parent 41c15b438d
commit 4d0358cf37
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ buildScan {
// 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"
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('/')
tag baseJobName
tag splitJobName.last()