Are you saying that the stages in pipeline should run on the other node? Between stages, I do not see how can you tell Jenkins to use different node in the label.
Jenkins has this default tendency to use node last used too for load balancer. For multiple task in parallel, you use “parallel”. For concurrency of multiple run of pipeline you use “concurrency” set to the “stage”. https://www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins From: <jenkinsci-users@googlegroups.com> on behalf of Sam K <sreeram...@gmail.com> Reply-To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com> Date: Tuesday, January 10, 2017 at 10:40 AM To: Jenkins Users <jenkinsci-users@googlegroups.com> Subject: Choose more than one agent at a time How can I tell Jenkins pipeline to pick up more than one agent at a time if they are free? I see there are ways to do this with the normal jobs. But I'm looking for options in the coded pipeline method. I have two slaves with the same label called 'jenkins-slave'. I have setup all nodes to 'Only build jobs with label expression matching'. When I launch a pipeline with jenkins-slave as node ('jenkins-slave') only one of them is picked up and does all the work. I want it to use more than one if available. -- 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f5e549a7-c6ca-4110-acef-f79114d2cf8f%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/f5e549a7-c6ca-4110-acef-f79114d2cf8f%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8821EFD1-FC7F-4B78-94B0-1C6F7230C6AF%40cisco.com. For more options, visit https://groups.google.com/d/optout.