nicht sicher, ob es mein begrenztes Wissen über Groovy ist oder eine Marotte in Pipeline parallel
Schritt. Ich kann es nicht failFast
machen akzeptieren, wenn ich Karte verwenden, anstatt jede Schließung vorbei individuell:Mit FAILFAST mit Verschluss Karte breaks „parallel“ Schritt
def map = [:]
map['spam'] = {
node {
echo 'spam'
}
}
map['eggs'] = {
node {
echo 'eggs'
}
}
parallel map // Works.
parallel spam: map['spam'], eggs: map['eggs'], failFast: true // Works.
parallel map, failFast: true // Fails with exception.
Die Ausnahme mit failFast
ist:
java.lang.IllegalArgumentException: Expected named arguments but got [{failFast=true}, {[email protected], [email protected]}]
at org.jenkinsci.plugins.workflow.cps.DSL.parseArgs(DSL.java:276)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:111)