I figured this out.
jobs = []
f.eachLine { line ->
jobs += job(type: Matrix) {
...
}
}
job(type: Multijob) {
steps {
phase('build') {
jobs.each { j ->
job(j.name)
}
}
}
}
On Tuesday, January 27, 2015 at 6:43:24 PM UTC-6, Jordan Spiker wrote:
>
> Hi all,
>
> I have a Multijob that creates jobs based on a text file.
>
> job(type: Multijob) {
> steps {
> phase('build') {
> f.eachLine {
> job(type: Matrix) {
> ...
> }
> }
> }
> }
> }
>
> This does generate the sub-jobs fine, but they are not included in the
> Multijob phase. How could I get the generated jobs to be included in the
> phase?
>
> Thanks!
>
--
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/3be4d632-8f3e-4a08-b3e0-87a3feadf689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.