Avoid parallel to run a null closure.
This commit is contained in:
parent
df1c506a90
commit
c6e62514c4
|
@ -122,8 +122,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
def buildComponents(args) {
|
def buildComponents(args) {
|
||||||
parallel args.items?.collectEntries { name -> [ "${name}": {
|
if (args.items) {
|
||||||
if (!"NONE".equalsIgnoreCase(name))
|
parallel args.items?.collectEntries { name -> [ "${name}": {
|
||||||
build name
|
if (!"NONE".equalsIgnoreCase(name))
|
||||||
}]}
|
build name
|
||||||
|
}]}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue