Skip to content

Commit

Permalink
Add heap dump files if the run failed (#2515)
Browse files Browse the repository at this point in the history
* Add heap dump files if the run failed

Signed-off-by: Peter Zhu <[email protected]>

* Add heap dump files if the run failed

Signed-off-by: Peter Zhu <[email protected]>

* Update the code

Signed-off-by: Peter Zhu <[email protected]>

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Aug 30, 2022
1 parent 2ca108c commit 40058ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ 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'
Expand Down

0 comments on commit 40058ed

Please sign in to comment.