Skip to content

Commit 82880b8

Browse files
committed
Add CauseOfInterruption printing if a test split execution is aborted
Patch by Dmitry Konstantinov; reviewed by Michael Semb Wever for CASSANDRA-20833
1 parent 170bf57 commit 82880b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.jenkins/Jenkinsfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,13 @@ def test(command, cell) {
395395
archiveArtifacts artifacts: "${logfile}", fingerprint: true
396396
}
397397
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
398405
} finally {
399406
def duration = System.currentTimeMillis() - timer
400407
def formattedTime = String.format("%tT.%tL", duration, duration)

0 commit comments

Comments
 (0)