jenkins \ force project to run on specific slave with input parameter?

user1025852 picture user1025852 · Sep 10, 2012 · Viewed 11.9k times · Source

If I have job that invokes series of jobs in jenkins can I give them all parameter to tie them up to a specific server?

I talk about the "Restrict where this project can be run" that currently I need to specifiy in the project level (can I give it as input parameter?)

Answer

Mike Rysanek picture Mike Rysanek · Aug 2, 2013

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

You can provide a parameter to the job via either the ParameterizedTrigger or using the API and providing the node name (or label).