Jenkinsfile: pickup results from ITs - 3.9.x (#952)

This commit is contained in:
Slawomir Jaranowski 2023-01-11 22:53:03 +01:00 committed by GitHub
parent 4e8773bc44
commit b5575f5c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

8
Jenkinsfile vendored
View File

@ -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