Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?)

like image 207
user1025852 Avatar asked Dec 20 '22 16:12

user1025852


1 Answers

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).

like image 169
Mike Rysanek Avatar answered Apr 27 '23 19:04

Mike Rysanek