diff --git a/Jenkinsfile b/Jenkinsfile index f2f4ace9d3e..f0f1b3e5e99 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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)