Skip to content

Commit

Permalink
Use separate buildkite annotation context for failed build scans
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Nov 2, 2023
1 parent f39b94e commit d39f982
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,8 @@ buildScan {
def jobName = (System.getenv('BUILDKITE_LABEL') ?: '').replaceAll(/[^a-zA-Z0-9_\-]+/, ' ').trim().replaceAll(' ', '_').toLowerCase()

tag 'CI'
link 'CI Build', "${buildKiteUrl}#${System.getenv('BUILDKITE_JOB_ID')}"
link 'CI Build', buildKiteUrl
value 'Job Number', System.getenv('BUILDKITE_BUILD_NUMBER')
value 'Build ID', System.getenv('BUILDKITE_BUILD_ID')
value 'Job ID', System.getenv('BUILDKITE_JOB_ID')

value 'Pipeline', System.getenv('BUILDKITE_PIPELINE_SLUG')
tag System.getenv('BUILDKITE_PIPELINE_SLUG')
Expand Down Expand Up @@ -146,7 +144,7 @@ buildScan {
'buildkite-agent',
'annotate',
'--context',
'gradle-build-scans',
result.failure ? 'gradle-build-scans-failed' : 'gradle-build-scans',
'--append',
'--style',
result.failure ? 'error' : 'info',
Expand Down

0 comments on commit d39f982

Please sign in to comment.