@@ -131,7 +131,7 @@ class Dynamatrix implements Cloneable {
131
131
* @see #setWorstResult(String, String)
132
132
* @see #resultFromString
133
133
*/
134
- public Result getWorstResult (Boolean recurse = true ) {
134
+ public Result getWorstResult (Boolean recurse = false ) {
135
135
Result r = this . @dmWorstResult
136
136
if (recurse && this . knownClones. size() > 0 ) {
137
137
this . knownClones. each {
@@ -325,7 +325,7 @@ class Dynamatrix implements Cloneable {
325
325
* @see #setLogKey
326
326
*/
327
327
@NonCPS
328
- synchronized public String getLogKey (String s , Boolean recurse = true ) {
328
+ synchronized public String getLogKey (String s , Boolean recurse = false ) {
329
329
Map<String , String > mapTrackStageLogkeys = this . getTrackStageLogkeys(recurse)
330
330
if (mapTrackStageLogkeys. containsKey(s)) {
331
331
return mapTrackStageLogkeys[s]
@@ -352,7 +352,7 @@ class Dynamatrix implements Cloneable {
352
352
* @return
353
353
*/
354
354
@NonCPS
355
- synchronized public Map<Result , Set<String > > reportStageResults (Boolean recurse = true ) {
355
+ synchronized public Map<Result , Set<String > > reportStageResults (Boolean recurse = false ) {
356
356
Map<Result , Set<String > > mapres = [:]
357
357
this . getTrackStageResults(recurse). each { String sn , Result r ->
358
358
// this.trackStageResults.each { String sn, Result r ->
@@ -433,20 +433,20 @@ class Dynamatrix implements Cloneable {
433
433
434
434
/* * Reporting the accounted values:
435
435
* We started the stage (maybe more than once) */
436
- public Integer countStagesStarted (Boolean recurse = true ) {
436
+ public Integer countStagesStarted (Boolean recurse = false ) {
437
437
Map<String , Integer > mapCountStages = this . getCountStages(recurse)
438
438
return intNullZero(mapCountStages?. STARTED ) + intNullZero(mapCountStages?. RESTARTED )
439
439
}
440
440
441
441
/* * Reporting the accounted values:
442
442
* We restarted the stage */
443
- public Integer countStagesRestarted (Boolean recurse = true ) {
443
+ public Integer countStagesRestarted (Boolean recurse = false ) {
444
444
return intNullZero(this . getCountStages(recurse)?. RESTARTED )
445
445
}
446
446
447
447
/* * Reporting the accounted values:
448
448
* We know we finished the stage, successfully or with "fex" exception caught */
449
- public Integer countStagesCompleted (Boolean recurse = true ) {
449
+ public Integer countStagesCompleted (Boolean recurse = false ) {
450
450
return intNullZero(this . getCountStages(recurse)?. COMPLETED )
451
451
}
452
452
@@ -455,32 +455,32 @@ class Dynamatrix implements Cloneable {
455
455
* (due to {@link #mustAbort}, after getting a node
456
456
* to execute our logic on)
457
457
*/
458
- public Integer countStagesAbortedSafe (Boolean recurse = true ) {
458
+ public Integer countStagesAbortedSafe (Boolean recurse = false ) {
459
459
return intNullZero(this . getCountStages(recurse)?. ABORTED_SAFE )
460
460
}
461
461
462
462
/* * Reporting the accounted values: Standard Jenkins build results */
463
- public Integer countStagesFinishedOK (Boolean recurse = true ) {
463
+ public Integer countStagesFinishedOK (Boolean recurse = false ) {
464
464
return intNullZero(this . getCountStages(recurse)?. SUCCESS )
465
465
}
466
466
467
467
/* * Reporting the accounted values: Standard Jenkins build results */
468
- public Integer countStagesFinishedFailure (Boolean recurse = true ) {
468
+ public Integer countStagesFinishedFailure (Boolean recurse = false ) {
469
469
return intNullZero(this . getCountStages(recurse)?. FAILURE )
470
470
}
471
471
472
472
/* * Reporting the accounted values: Standard Jenkins build results */
473
- public Integer countStagesFinishedFailureAllowed (Boolean recurse = true ) {
473
+ public Integer countStagesFinishedFailureAllowed (Boolean recurse = false ) {
474
474
return intNullZero(this . getCountStages(recurse)?. UNSTABLE )
475
475
}
476
476
477
477
/* * Reporting the accounted values: Standard Jenkins build results */
478
- public Integer countStagesAborted (Boolean recurse = true ) {
478
+ public Integer countStagesAborted (Boolean recurse = false ) {
479
479
return intNullZero(this . getCountStages(recurse)?. ABORTED )
480
480
}
481
481
482
482
/* * Reporting the accounted values: Standard Jenkins build results */
483
- public Integer countStagesAbortedNotBuilt (Boolean recurse = true ) {
483
+ public Integer countStagesAbortedNotBuilt (Boolean recurse = false ) {
484
484
return intNullZero(this . getCountStages(recurse)?. NOT_BUILT )
485
485
}
486
486
@@ -536,7 +536,7 @@ class Dynamatrix implements Cloneable {
536
536
// Must be CPS - calls pipeline script steps; this
537
537
// precludes use of at least synchronized{} blocks
538
538
synchronized
539
- Boolean updateProgressBadge (Boolean removeOnly = false , Boolean recurse = true ) {
539
+ Boolean updateProgressBadge (Boolean removeOnly = false , Boolean recurse = false ) {
540
540
if (! this . script)
541
541
return null
542
542
@@ -653,7 +653,7 @@ class Dynamatrix implements Cloneable {
653
653
return ret
654
654
}
655
655
656
- public Dynamatrix clone (String dynamatrixComment , Boolean rememberMe = true ) throws CloneNotSupportedException {
656
+ public Dynamatrix clone (String dynamatrixComment , Boolean rememberMe = false ) throws CloneNotSupportedException {
657
657
Dynamatrix ret = (Dynamatrix ) super . clone()
658
658
ret. dynamatrixComment = dynamatrixComment
659
659
ret. knownClones = []
@@ -697,7 +697,7 @@ class Dynamatrix implements Cloneable {
697
697
* Report amounts of stages which have certain verdicts,
698
698
* zero or not, in layman wording.
699
699
*/
700
- public String toStringStageCount (Boolean recurse = true ) {
700
+ public String toStringStageCount (Boolean recurse = false ) {
701
701
return " countStagesStarted:${ countStagesStarted(recurse)} " +
702
702
" (of which countStagesRestarted:${ countStagesRestarted(recurse)} ) " +
703
703
" countStagesCompleted:${ countStagesCompleted(recurse)} " +
@@ -713,7 +713,7 @@ class Dynamatrix implements Cloneable {
713
713
* Report amounts of stages which have certain verdicts,
714
714
* greater than zero, in layman wording.
715
715
*/
716
- public String toStringStageCountNonZero (Boolean recurse = true ) {
716
+ public String toStringStageCountNonZero (Boolean recurse = false ) {
717
717
String s = " "
718
718
Integer i
719
719
@@ -752,7 +752,7 @@ class Dynamatrix implements Cloneable {
752
752
* greater than zero, in debug-friendly wording (using
753
753
* key names from {@link #countStages} map).
754
754
*/
755
- public String toStringStageCountDumpNonZero (Boolean recurse = true ) {
755
+ public String toStringStageCountDumpNonZero (Boolean recurse = false ) {
756
756
Map<String , Integer > m = [:]
757
757
this . getCountStages(recurse). each {String k , Integer v ->
758
758
if (v > 0 ) m[k] = v
@@ -766,7 +766,7 @@ class Dynamatrix implements Cloneable {
766
766
* made from this {@link Dynamatrix} object.
767
767
*/
768
768
@NonCPS
769
- synchronized public Map<String , Integer > getCountStages (Boolean recurse = true ) {
769
+ synchronized public Map<String , Integer > getCountStages (Boolean recurse = false ) {
770
770
// Avoid java.lang.CloneNotSupportedException: java.util.concurrent.ConcurrentHashMap
771
771
// Groovy and Java should support it, but...
772
772
Map<String , Integer > mapres = new ConcurrentHashMap<String , Integer > ()
@@ -794,7 +794,7 @@ class Dynamatrix implements Cloneable {
794
794
* made from this {@link Dynamatrix} object.
795
795
*/
796
796
@NonCPS
797
- synchronized public Map<String , String > getTrackStageLogkeys (Boolean recurse = true ) {
797
+ synchronized public Map<String , String > getTrackStageLogkeys (Boolean recurse = false ) {
798
798
// Avoid java.lang.CloneNotSupportedException: java.util.concurrent.ConcurrentHashMap
799
799
// Groovy and Java should support it, but...
800
800
Map<String , String > mapres = new ConcurrentHashMap<String , String > ()
@@ -822,7 +822,7 @@ class Dynamatrix implements Cloneable {
822
822
* made from this {@link Dynamatrix} object.
823
823
*/
824
824
@NonCPS
825
- synchronized public Map<String , Result > getTrackStageResults (Boolean recurse = true ) {
825
+ synchronized public Map<String , Result > getTrackStageResults (Boolean recurse = false ) {
826
826
// Avoid java.lang.CloneNotSupportedException: java.util.concurrent.ConcurrentHashMap
827
827
// Groovy and Java should support it, but...
828
828
Map<String , Result > mapres = new ConcurrentHashMap<String , Result > ()
@@ -845,7 +845,7 @@ class Dynamatrix implements Cloneable {
845
845
}
846
846
847
847
/* * Returns stringification of current {@link #countStages} map contents. */
848
- public String toStringStageCountDump (Boolean recurse = true ) {
848
+ public String toStringStageCountDump (Boolean recurse = false ) {
849
849
if (recurse) {
850
850
return this . getCountStages(recurse). toString()
851
851
} else {
@@ -1973,12 +1973,12 @@ def parallelStages = prepareDynamatrix(
1973
1973
1974
1974
/* * @see #generateBuild(Map, boolean, boolean, Closure) */
1975
1975
def generateBuild (Map dynacfgOrig = [:], Closure bodyOrig = null ) {
1976
- return generateBuild(dynacfgOrig, false , true , bodyOrig)
1976
+ return generateBuild(dynacfgOrig, false , false , bodyOrig)
1977
1977
}
1978
1978
1979
1979
/* * @see #generateBuild(Map, boolean, boolean, Closure) */
1980
1980
def generateBuild (Map dynacfgOrig = [:], boolean returnSet , Closure bodyOrig = null ) {
1981
- return generateBuild(dynacfgOrig, returnSet, true , bodyOrig)
1981
+ return generateBuild(dynacfgOrig, returnSet, false , bodyOrig)
1982
1982
}
1983
1983
1984
1984
/**
0 commit comments