Skip to content

Commit

Permalink
Jenkinsfile: pickup results from ITs - 3.9.x (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski authored Jan 11, 2023
1 parent 4e8773b commit b5575f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
}
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b5575f5

Please sign in to comment.