Skip to content

Commit

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

Please sign in to comment.