Hi, I've got a declarative pipeline with parallel builds that works but I'd like to avoid some repetition.
Here's the gist of my pipeline pipeline { stages { stage('Build') { parallel ( "target1": { node ('maker') { sh 'make target1_config' sh 'make' } }, "target2": { node ('maker') { sh 'make target2_config' sh 'make' } }, ... ) } } } I'd like to be able to use "make ${something}_config" so that I don't have to repeat (or track down the one place I haven't) the target name. It would also be nice if I could define the build steps once and re-use them inside the nodes. Any suggestions? -- 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/CAFOYHZAXegjg%3DdDm93a_T%3DpnbHj2Xtjasih39mJbX59HTMZhhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.