Add matrix job params as build scan tag

Signed-off-by: Mark Vieira <portugee@gmail.com>
This commit is contained in:
Mark Vieira 2020-01-14 09:53:46 -08:00
parent 72c270946f
commit 2de2a3634e
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ buildScan {
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()
value 'Job Name', baseJobName
def matrixParams = splitJobName.last().split(',')
matrixParams.collect { it.split('=') }.each { param ->