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?
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".
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.
"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
© 2022 - 2024 — McMap. All rights reserved.