Consider following snippet:
It starts to build the requested jobs just fine.
INFO: job1 #125 main build action completed: SUCCES
INFO: job1 #127 main build action completed: SUCCES
INFO: job1 #126 main build action completed: SUCCES
INFO: job2 #124 main build action completed: SUCCES
However when all of the jobs are done it seems Pipeline can't seem to merge all those results and is just stuck. After 24h it's still hanging, seemingly waiting for a parallel job to finish.
Now when I remove the outermost for loop things run just fine.
Removing the inner for loop and increasing the outer loop to 100 results in foo being too big for Jenkins to handle. Same happens without said for loops obviously, which lead me to start using them.
There's probably a better way to handle this.
Any pointers how to get there?