Random slave for each build of one job

7 views
Skip to first unread message

Pasi

unread,
Aug 8, 2011, 8:04:16 AM8/8/11
to Jenkins Users
Does anybody know if it is possible to allow a job to select a
different slave for each build of a job?

As I understand, currently Jenkins prefers to execute the next build
of one job in the same slave as the previous build was run in. We
would like to change this behavior as sometimes there is hardware
malfunction in the slave and all the test results from the weekend are
lost because the job was not run in a working slave.

-Pasi

domi

unread,
Aug 8, 2011, 1:33:41 PM8/8/11
to jenkins...@googlegroups.com
Jenkins executes the Job on the same slave if the slave is available - if not, he will choose an other slave having the same 'label'
Labels can be used to 'group' your slaves by provided functionality (e.g. maven, selenium installed), each of your slaves can be assigned to multiple different Labels - you can define the required Labels in your Job config at 'Restrict where this project can be run'

There is also a plugin which allows you to select a different Slave for every execution:
https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin

does this

Reply all
Reply to author
Forward
0 new messages