Plugin that runs a job on a specific slave, based on it's CPU usage

13 views
Skip to first unread message

Mihai Dinu

unread,
Jul 26, 2016, 9:15:03 AM7/26/16
to Jenkins Users
Hi there Jenkins fans, 

I got this problem that i'm trying to figure out and I was hoping someone could help me with it. I have a job that i want to start on a specific jenkins slave. This slave would be selected from a list of available slaves passed by me as parameter (e.g. [$slave1, $slave4, $slave5]). The slave that is selected, for the job to run on, should be the one that has the least amount of used resources, especially CPU, so that when other jobs are started in parallel, the workload will be split among the slaves evenly. 

I've looked at the https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin but it only satisfies a third of my needs (passing a slave to a job). I've also looked at https://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin, but with this plugin i can't control on which slaves not to run the job and it only looks at the amount of executors that are free on the slaves, not the actual CPU usage. 

Any pointers are welcome. 

Thank you! 
Reply all
Reply to author
Forward
0 new messages