Merge branch 'cassandra-5.0' into trunk

* cassandra-5.0:
  Add CauseOfInterruption printing if a test split execution is aborted
This commit is contained in:
Dmitry Konstantinov 2025-08-13 20:12:38 +01:00
commit 20b94aa784
1 changed files with 7 additions and 0 deletions

View File

@ -396,6 +396,13 @@ def test(command, cell) {
archiveArtifacts artifacts: "${logfile}", fingerprint: true
}
if (0 != status) { error("Stage ${cell.step}${cell_suffix} failed with exit status ${status}") }
} catch (exc) {
if (exc.getClass().getName() == "org.jenkinsci.plugins.workflow.steps.FlowInterruptedException") {
for (def causeOfInterruption in exc.getCauses()) {
echo "CauseOfInterruption: ${causeOfInterruption.getClass().getName()} - ${causeOfInterruption.getShortDescription()}"
}
}
throw exc
} finally {
def duration = System.currentTimeMillis() - timer
def formattedTime = String.format("%tT.%tL", duration, duration)