Skip to content

Commit

Permalink
Add matrix job params as build scan tag
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Vieira <portugee@gmail.com>
  • Loading branch information
mark-vieira committed Jan 14, 2020
1 parent 72c2709 commit 2de2a36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gradle/build-scan.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit 2de2a36

Please sign in to comment.