Skip to content

Commit

Permalink
Dynamatrix.groovy: in main loop of stage exception handling, track un…
Browse files Browse the repository at this point in the history
…known Throwables as COMPLETED+FAILURE so that numbers add up [networkupstools#19]
  • Loading branch information
jimklimov committed Jul 10, 2023
1 parent d2cbcdb commit c34ad9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/org/nut/dynamatrix/Dynamatrix.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2515,6 +2515,12 @@ def parallelStages = prepareDynamatrix(
// TODO // } catch (hudson.plugins.git.GitException gex) { // see https://github.com/networkupstools/jenkins-dynamatrix/issues/19 about evil force-pushes
} catch (Throwable t) {
dsbc.thisDynamatrix?.countStagesIncrement('DEBUG-EXC-UNKNOWN: ' + Utils.castString(t), stageName + sbName)

// No idea what happened (that's for devops to research), but this
// stage has definitely completed, and not in a successful fashion....
dsbc.thisDynamatrix?.countStagesIncrement('COMPLETED', stageName + sbName)
dsbc.thisDynamatrix?.countStagesIncrement('FAILURE', stageName + sbName)

dsbc.thisDynamatrix?.updateProgressBadge(false, rememberClones)
dsbc.dsbcResultInterim = 'Throwable'

Expand Down

0 comments on commit c34ad9e

Please sign in to comment.