Add matrix job params as build scan tag
Signed-off-by: Mark Vieira <portugee@gmail.com>
This commit is contained in:
parent
72c270946f
commit
2de2a3634e
|
@ -40,6 +40,7 @@ buildScan {
|
||||||
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()
|
||||||
value 'Job Name', baseJobName
|
value 'Job Name', baseJobName
|
||||||
def matrixParams = splitJobName.last().split(',')
|
def matrixParams = splitJobName.last().split(',')
|
||||||
matrixParams.collect { it.split('=') }.each { param ->
|
matrixParams.collect { it.split('=') }.each { param ->
|
||||||
|
|
Loading…
Reference in New Issue