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