We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170bf57 commit 82880b8Copy full SHA for 82880b8
.jenkins/Jenkinsfile
@@ -395,6 +395,13 @@ def test(command, cell) {
395
archiveArtifacts artifacts: "${logfile}", fingerprint: true
396
}
397
if (0 != status) { error("Stage ${cell.step}${cell_suffix} failed with exit status ${status}") }
398
+ } catch (exc) {
399
+ if (exc.getClass().getName() == "org.jenkinsci.plugins.workflow.steps.FlowInterruptedException") {
400
+ for (def causeOfInterruption in exc.getCauses()) {
401
+ echo "CauseOfInterruption: ${causeOfInterruption.getClass().getName()} - ${causeOfInterruption.getShortDescription()}"
402
+ }
403
404
+ throw exc
405
} finally {
406
def duration = System.currentTimeMillis() - timer
407
def formattedTime = String.format("%tT.%tL", duration, duration)
0 commit comments