From 4f28e6819358ca831c778a2221c0e6e5b0058fe4 Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Thu, 21 Nov 2024 13:52:48 +0000 Subject: [PATCH] Add pipeline publish link warning if job fails Signed-off-by: Andrew Leonard --- pipelines/build/common/build_base_file.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipelines/build/common/build_base_file.groovy b/pipelines/build/common/build_base_file.groovy index e51aa31fe..6bacf10be 100644 --- a/pipelines/build/common/build_base_file.groovy +++ b/pipelines/build/common/build_base_file.groovy @@ -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 = 'WARNING: build result(' + jobResult + ') : ' + releaseWarning = 'WARNING: build result(' + jobResult + ') : ' } def tag = "${javaToBuild}-${timestamp}"