Skip to content

Commit c34ad9e

Browse files
committed
Dynamatrix.groovy: in main loop of stage exception handling, track unknown Throwables as COMPLETED+FAILURE so that numbers add up [networkupstools#19]
1 parent d2cbcdb commit c34ad9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/org/nut/dynamatrix/Dynamatrix.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2515,6 +2515,12 @@ def parallelStages = prepareDynamatrix(
25152515
// TODO // } catch (hudson.plugins.git.GitException gex) { // see https://github.com/networkupstools/jenkins-dynamatrix/issues/19 about evil force-pushes
25162516
} catch (Throwable t) {
25172517
dsbc.thisDynamatrix?.countStagesIncrement('DEBUG-EXC-UNKNOWN: ' + Utils.castString(t), stageName + sbName)
2518+
2519+
// No idea what happened (that's for devops to research), but this
2520+
// stage has definitely completed, and not in a successful fashion....
2521+
dsbc.thisDynamatrix?.countStagesIncrement('COMPLETED', stageName + sbName)
2522+
dsbc.thisDynamatrix?.countStagesIncrement('FAILURE', stageName + sbName)
2523+
25182524
dsbc.thisDynamatrix?.updateProgressBadge(false, rememberClones)
25192525
dsbc.dsbcResultInterim = 'Throwable'
25202526

0 commit comments

Comments
 (0)