How can i specify the node that job should run on dynamically based on build parameter?
I solved this with a matrix configuration: first axis is "Slaves" with 2 nodes are selected under "Node/Label" <https://lh6.googleusercontent.com/-NjfvnaZ4AAQ/URGMz6AlYSI/AAAAAAAAiDk/Bg89XVUTf_8/s1600/slaves.png> second axis is "GroovyAxis" which reads build parameter and returns it as Groovy Axis "env" <https://lh5.googleusercontent.com/-1eSmoKJqJYY/URGM4fRWafI/AAAAAAAAiDs/A3w75WwuRho/s1600/groovy-axis.png> And then I have a combination filter that filters says in some cases use "another-node" in other cases use "jenkins-node" ----------------------------------------------------- label == "another-node" && env.startsWith("runonother") || label == "jenkins-node" && !env.startsWith("runonother") ----------------------------------------------------- This works, but I was hoping for a more graceful solution. Thanks, -Mike -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
