From b5575f5c820507ed137b2edba078546ca7440a4d Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Wed, 11 Jan 2023 22:53:03 +0100 Subject: [PATCH] Jenkinsfile: pickup results from ITs - 3.9.x (#952) --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f4c683335ca4..77c6d7c3aa00 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,11 +56,11 @@ node(jenkinsEnv.nodeSelection(osNode)) { sh "mvn clean ${MAVEN_GOAL} -B -U -e -fae -V -Dmaven.test.failure.ignore -PversionlessMavenDist -Dmaven.repo.local=${WORK_DIR}/.repository" } } finally { - junit testResults: '**/target/surefire-reports/*.xml', allowEmptyResults: true + junit testResults: '**/target/surefire-reports/*.xml,**/target/failsafe-reports/*.xml', allowEmptyResults: true } dir ('apache-maven/target') { stash includes: 'apache-maven-bin.zip', name: 'maven-dist' - } + } } } } @@ -111,7 +111,9 @@ for (String os in runITsOses) { } } } finally { - //junit testResults: '**/core-it-suite/**/target/surefire-reports/*.xml', allowEmptyResults: true + // in ITs test we need only reports from test itself + // test projects can contain reports with tested failed builds + junit testResults: '**/core-it-suite/target/surefire-reports/*.xml,**/core-it-support/**/target/surefire-reports/*.xml', allowEmptyResults: true archiveDirs(stageId, ['core-it-suite-logs':'core-it-suite/target/test-classes', 'core-it-suite-reports':'core-it-suite/target/surefire-reports']) deleteDir() // clean up after ourselves to reduce disk space