From 913e82d0da37a5b47dc9148ff3f6acdc60baac2d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 16 Jul 2024 21:28:17 +1000 Subject: [PATCH] Jetty 12.0.x test Jenkins JUnitFlakyTestDataPublisher (#11984) * use JUnitFlakyTestDataPublisher --------- Signed-off-by: Olivier Lamy --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4c30e6f1bb6..baba215004a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -126,7 +126,7 @@ def mavenBuild(jdk, cmdline, mvnName) { } } runLaunchable ("verify") - runLaunchable ("record build --name $BRANCH_NAME") + runLaunchable ("record build --name jetty-12.0.x") sh "mvn $extraArgs -DsettingsPath=$GLOBAL_MVN_SETTINGS -Dmaven.repo.uri=http://nexus-service.nexus.svc.cluster.local:8081/repository/maven-public/ -ntp -s $GLOBAL_MVN_SETTINGS -Dmaven.repo.local=.repository -Pci -V -B -e -U $cmdline" if(saveHome()) { archiveArtifacts artifacts: ".repository/org/eclipse/jetty/jetty-home/**/jetty-home-*", allowEmptyArchive: true, onlyIfSuccessful: false @@ -136,9 +136,9 @@ def mavenBuild(jdk, cmdline, mvnName) { } finally { - junit testResults: '**/target/surefire-reports/**/*.xml,**/target/invoker-reports/TEST*.xml', allowEmptyResults: true + junit testDataPublishers: [[$class: 'JUnitFlakyTestDataPublisher']], testResults: '**/target/surefire-reports/**/*.xml,**/target/invoker-reports/TEST*.xml', allowEmptyResults: true echo "Launchable record tests" - runLaunchable ("record tests --build $BRANCH_NAME maven '**/target/surefire-reports/**/*.xml' '**/target/invoker-reports/TEST*.xml'") + runLaunchable ("record tests --build jetty-12.0.x maven '**/target/surefire-reports/**/*.xml' '**/target/invoker-reports/TEST*.xml'") } } }