I can't find "Restrict where this project can be run" in the configure page
Asked Answered
B

3

20

I use Jenkins,I can't find "Restrict where this project can be run" in the configure page,should I add some plugins? which one?

Biforate answered 20/2, 2013 at 8:51 Comment(0)
G
20

This is because you have not yet added any new nodes to your Jenkins set up. Till then the master(where you have installed Jenkins) is the only available machine where jobs can be run. So there is no need to ask where the job needs to be restricted to be run.

Check this link to see how to add a new node to your jenkins setup. Once you add a new node, you will see the option of "Restrict where this project can be run".

Greatgrandaunt answered 20/2, 2013 at 9:25 Comment(1)
@Shiva Kumar any idea how can I bind a pipeline project to a slave node ?Cutie
T
8

This is because you have not added any label to your master node (if you don't have slaves).

This is a bit weird because you could also use the node name (i.e. 'master') to restrict the executor node, not only the label, and you may want to do this before you add further slaves.

Tarragon answered 28/5, 2014 at 8:28 Comment(1)
Yep. If you label your master node "master", "Restrict where this project can be run" will not be available. Solution: label your master node "master_node" and voila, your jobs will now have that checkbox visible.Tsarevitch
E
4

"Restrict where this project can be run" exists only for Freestyle and other classic project types, for Pipeline you should use node(label) steps within your Pipeline definition

Ewing answered 12/10, 2020 at 7:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.