Skip to content

Commit

Permalink
Add pipeline publish link warning if job fails
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Nov 21, 2024
1 parent 2ba8f15 commit 4f28e68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipelines/build/common/build_base_file.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,7 @@ class Builder implements Serializable {
def releaseWarning = ''
if ( jobResult != "SUCCESS" && jobResult != "UNSTABLE" ) {
// Build was not successful, add warning and link to build job
def buildUrl = "${context.JENKINS_URL}${jobUrl}"
releaseWarning = '<a href=' + buildUrl + '><span style="color:red;">WARNING: build result(<b>' + jobResult + '</b>)</span></a> : '
releaseWarning = '<a href=' + jobUrl + '><span style="color:red;">WARNING: build result(<b>' + jobResult + '</b>)</span></a> : '
}

def tag = "${javaToBuild}-${timestamp}"
Expand Down

0 comments on commit 4f28e68

Please sign in to comment.