Does Jenkins \ force run on a particular slave with an input parameter?

If I have a job that invokes a series of jobs in jenkins, can I give them all the parameters to bind them to a specific server?

I'm talking about the "Limit where this project can be run", which I currently need to specify at the project level (can I give it as an input parameter?)

+4
source share
2 answers

You must create a way to enter a string, and then use this in the "Limit where this project can be run" field. Therefore, if your string parameter was called by TAG, you must put ${TAG} in the field.

You can then use the Parameterized Trigger plugin to pass this downstream jobs, essentially binding them all to the same node.

+2
source

Use this plugin: https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin

You can specify the parameter for the job through the ParameterizedTrigger parameter or using the API and provide the node name (or label).

+6
source

Source: https://habr.com/ru/post/1433416/


All Articles