> On 26.05.2016, at 15:44, Michael Pereira <pereir...@gmail.com> wrote: > > With a few modifications it should do the job, but it is still a lot of code. > I'm dreaming about things like: > node(label='slave', run_on_all_matching_nodes=true) { > // some block > } > Is this even possible?
Pipeline global lib should allow you to define a function that does this, for reuse in all your build scripts. https://github.com/jenkinsci/workflow-cps-global-lib-plugin#pipeline-global-library -- 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/5260CF07-FAE6-44E2-8F30-FE5C7746CCB7%40beckweb.net. For more options, visit https://groups.google.com/d/optout.