"a b c,d, e , f" parameters are passing now but I am not getting the
"parallel" execution desired. All of the spawned jobs have the same build
number and if I look at completed job it has the passed parameter "f".
def inputParameter =
build.buildVariableResolver.resolve("inputParameter").split(/[ ,]+/)
def branches = [:]
def int i = 0
for (String deployment : inputParameter) {
println("${i} ${deployment}")
branches["deployment-${deployment}"] = {
build( 'aa', inputParameter: "${deployment}" )
}
i++
}
parallel branches
OUTPUT:
Started by user
0 a
1 b
2 c
3 d
4 e
5 f
parallel {
Schedule job aa <http://kcmodbldp1:8080/job/aa/>
Schedule job aa <http://kcmodbldp1:8080/job/aa/>
Schedule job aa <http://kcmodbldp1:8080/job/aa/>
Schedule job aa <http://kcmodbldp1:8080/job/aa/>
Schedule job aa <http://kcmodbldp1:8080/job/aa/>
Schedule job aa <http://kcmodbldp1:8080/job/aa/>
Build aa #23 <http://kcmodbldp1:8080/job/aa/23/> started
Build aa #23 <http://kcmodbldp1:8080/job/aa/23/> started
Build aa #23 <http://kcmodbldp1:8080/job/aa/23/> started
Build aa #23 <http://kcmodbldp1:8080/job/aa/23/> started
Build aa #23 <http://kcmodbldp1:8080/job/aa/23/> started
Build aa #23 <http://kcmodbldp1:8080/job/aa/23/> started
aa #23 <http://kcmodbldp1:8080/job/aa/23/> completed
}
Aborted by
Build was aborted
Finished: ABORTED
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e38e3d52-31cf-4fbd-be0d-aa73a875b4aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.