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