[zorg] r317653 - jenkins/benchmark.groovy: Only hide exceptions from shell failure
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 17:22:13 PST 2017
Author: matze
Date: Tue Nov 7 17:22:13 2017
New Revision: 317653
URL: http://llvm.org/viewvc/llvm-project?rev=317653&view=rev
Log:
jenkins/benchmark.groovy: Only hide exceptions from shell failure
Only catch hudson.AbortException which happens when a shell execution
step failed. For everything else we want to see the backtrace so do not
catch it.
Modified:
zorg/trunk/zorg/jenkins/benchmark.groovy
Modified: zorg/trunk/zorg/jenkins/benchmark.groovy
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/benchmark.groovy?rev=317653&r1=317652&r2=317653&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/benchmark.groovy (original)
+++ zorg/trunk/zorg/jenkins/benchmark.groovy Tue Nov 7 17:22:13 2017
@@ -73,8 +73,13 @@ def pipeline(label, body) {
}
body()
}
- } catch(Exception e) {
+ } catch(hudson.AbortException e) {
+ // No need to print the exception if something fails inside a 'sh'
+ // step.
currentBuild.result = 'FAILURE'
+ } catch (Exception e) {
+ currentBuild.result = 'FAILURE'
+ throw e
} finally {
stage('post') {
post_build()
More information about the llvm-commits
mailing list