File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import org.apache.commons.cli.Option
33
33
34
34
// Version
35
35
// Update with every change/release
36
- String version = ' 2.6.4 '
36
+ String version = ' 2.6.5 '
37
37
38
38
println " +------------------+"
39
39
println " | PipelineTester | v$version "
Original file line number Diff line number Diff line change @@ -483,6 +483,8 @@ class Tester {
483
483
// Collect the optional minValues value
484
484
if (option. minValues != null ) {
485
485
optionMinValues. add(option. minValues)
486
+ } else {
487
+ optionMinValues. add(0 )
486
488
}
487
489
488
490
// Collect the optional default value?
@@ -543,6 +545,7 @@ class Tester {
543
545
544
546
if (checkStatus) {
545
547
// Now check that the user has not missed an option.
548
+ int offset = 0
546
549
optionNames. each { String option ->
547
550
boolean foundParam = false
548
551
params. each { param ->
@@ -562,11 +565,12 @@ class Tester {
562
565
}
563
566
}
564
567
}
565
- if (! foundParam && optionMinValues. size() > 0 && optionMinValues[0 ] > 0 ) {
566
- Log . err(" Pipeline option '$option ' is not defined in the test's params" +
567
- " and there is no default value to use." )
568
+ if (! foundParam && optionMinValues. size() > 0 && optionMinValues[offset ] > 0 ) {
569
+ Log . err(" Pipeline option '$option ' is not defined ( $o ffset ) in the test's params" +
570
+ " and there is no default value to use. $o ptionMinValues " )
568
571
checkStatus = false
569
572
}
573
+ offset + = 1
570
574
}
571
575
}
572
576
You can’t perform that action at this time.
0 commit comments