Search code examples
jenkinsjenkins-pluginsjenkins-cli

Jenkins Label parameter Issue


I created 4 slaves in my Jenkins and give a same label "test".Now I want when I will give the test label the deployment should run on all the slaves which is having the label test but unfortunately it is not working.while I give the test label it shows all the nodes which is associated with them but it doesn't execute the job on all slaves just only one.

The first picture shows how I am defining the Label parameter in the jenkins job.it shows Run on all nodes matching the label

enter image description here

The second pic shows while I am giving test in deployeLayer it shows all the nodes but after executing it this doesn't run the job on all matching nodes.

enter image description here

Can someone tell me if I am missing something

I am using the below version Jenkins ver. 1.558 Node and Label parameter plugin = 1.5.1


Solution

  • See NodeLabel Parameter Plugin, BuildParameterFactory:

    The nodelabel parameter plugin also adds a BuildParameterFactory to the parameterized trigger plugin, this factory enables you to trigger a build of a specific project on all nodes having the same label.