Skip to content

Commit

Permalink
[CI] Report error in the catch section (#22297)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Oct 30, 2020
1 parent b18b333 commit ed576aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def withBeatsEnv(Map args = [:], Closure body) {
} catch(err) {
// Upload the generated files ONLY if the step failed. This will avoid any overhead with Google Storage
upload = true
error("Error '${err.toString()}'")
} finally {
if (archive) {
archiveTestOutput(testResults: testResults, artifacts: artifacts, id: args.id, upload: upload)
Expand Down

0 comments on commit ed576aa

Please sign in to comment.