Skip to content

Commit

Permalink
Moved heap dumps archival to failure section
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta committed Aug 29, 2022
1 parent 1e9cc8a commit 63da90e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@ pipeline {
}
}
post() {
failure {
archiveArtifacts artifacts: '**/build/heapdump/*.hprof', allowEmptyArchive: true
}
always {
sh ("cp -v `find search/build/reports/jacoco/ -name '*.xml' | head -n 1` codeCoverage.xml || echo")
junit allowEmptyResults: true, testResults: '**/build/test-results/**/*.xml'
archiveArtifacts artifacts: 'codeCoverage.xml', onlyIfSuccessful: true
archiveArtifacts artifacts: '**/build/heapdump/*.hprof', allowEmptyArchive: true
script {
sh("rm -rf *")
postCleanup()
Expand Down

0 comments on commit 63da90e

Please sign in to comment.