Skip to content

Commit

Permalink
[CI] Report error in the catch section (elastic#22297)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Oct 30, 2020
1 parent ca30a6d commit c45cd83
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 c45cd83

Please sign in to comment.