From 0838bc6cb2252d0dadf2072c05b61c42dfb8e44b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 10 Feb 2025 09:09:48 +1000 Subject: [PATCH 1/4] Update Jenkinsfile --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4debb8c..1728253 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -140,6 +140,9 @@ pipeline { sh "mvn -nsu -ntp -s $GLOBAL_MVN_SETTINGS -Dmaven.test.failure.ignore=true -V -B -U clean verify -e -Djetty.version=$JETTY_VERSION $MVN_ARGS" } } + publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', + text: 'you can publish checks in pipeline script', + detailsURL: 'https://webtide.com/what-we-do/' } } post { From d688a9a85b6c5e129b6c38edf128ac661ac07349 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 10 Feb 2025 09:19:00 +1000 Subject: [PATCH 2/4] Update Jenkinsfile test $BUILD_URL --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1728253..2c8645e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -137,12 +137,12 @@ pipeline { "PATH+MAVEN=${env.JAVA_HOME}/bin:${tool 'maven3'}/bin", "MAVEN_OPTS=-Xms4g -Xmx8g -Djava.awt.headless=true"]) { configFileProvider([configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) { - sh "mvn -nsu -ntp -s $GLOBAL_MVN_SETTINGS -Dmaven.test.failure.ignore=true -V -B -U clean verify -e -Djetty.version=$JETTY_VERSION $MVN_ARGS" + sh "mvn -v -nsu -ntp -s $GLOBAL_MVN_SETTINGS -Dmaven.test.failure.ignore=true -V -B -U clean verify -e -Djetty.version=$JETTY_VERSION $MVN_ARGS" } } publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', text: 'you can publish checks in pipeline script', - detailsURL: 'https://webtide.com/what-we-do/' + detailsURL: '$BUILD_URL' } } post { From 7d8d0b39c56a1784e5795278497fff2ef7c9ad2e Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 10 Feb 2025 09:22:00 +1000 Subject: [PATCH 3/4] Update Jenkinsfile - fix interpolation --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2c8645e..3fbbbdb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -142,7 +142,7 @@ pipeline { } publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', text: 'you can publish checks in pipeline script', - detailsURL: '$BUILD_URL' + detailsURL: "$BUILD_URL" } } post { From 878359ff76f60c515c3748b7990bd8641dcb0dbd Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 10 Feb 2025 09:26:33 +1000 Subject: [PATCH 4/4] Update Jenkinsfile - test url --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3fbbbdb..8dc6a1f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -140,8 +140,8 @@ pipeline { sh "mvn -v -nsu -ntp -s $GLOBAL_MVN_SETTINGS -Dmaven.test.failure.ignore=true -V -B -U clean verify -e -Djetty.version=$JETTY_VERSION $MVN_ARGS" } } - publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', - text: 'you can publish checks in pipeline script', + publishChecks name: 'example', title: 'Pipeline Check', summary: "check through pipeline: $BUILD_URL", + text: "you can publish checks in pipeline script: $BUILD_URL", detailsURL: "$BUILD_URL" } }