jenkins/ci.jpl: Add comment why stacktrace is not printed on exception
Also add commented out code to print the stacktrace, to not research it
next time from scratch (but again, it unlikely to be useful).
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Iebd9d54f05674bae2fa527a6cfa9311d33169761
diff --git a/jenkins/ci.jpl b/jenkins/ci.jpl
index c4e0551..de9ac06 100644
--- a/jenkins/ci.jpl
+++ b/jenkins/ci.jpl
@@ -389,7 +389,10 @@
}
}
catch (Exception e) {
- print("ERROR: ${e}")
+ println("ERROR: ${e}")
+ // We don't print stacktrace, because Jenkins pipeline use CPS conversion
+ // of the Groovy code, which leads to incomprehensible stacktraces.
+ //print(hudson.Functions.printThrowable(org.codehaus.groovy.runtime.StackTraceUtils.sanitize(e)))
success = false
} finally {
archiveArtifacts artifacts: 'cfgs/**', allowEmptyArchive: true