Skip to content

Commit

Permalink
[CI] Report error in the catch section (#22297) (#22310)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Nov 2, 2020
1 parent ca30a6d commit 273bccf
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 @@ -296,6 +296,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 273bccf

Please sign in to comment.