A simple multi-configuration job question

21 views
Skip to first unread message

David Aldrich

unread,
Nov 4, 2015, 6:40:12 AM11/4/15
to jenkins...@googlegroups.com
Hi

I want to run a simple bash script on multiple machines (concurrently), triggered by a version control change.

Can I do that by simply by using a Freestyle Project and listing multiple slaves in field 'Restrict where this project can be run', or must I use a multi-configuration project?

If a multi-configuration project is required, how should I configure the axes (using the slave names) ?

Best regards

David


Mike Healey

unread,
Nov 4, 2015, 11:43:20 AM11/4/15
to Jenkins Users, David....@emea.nec.com
Hi David,

A Freestyle project would only execute once on one of the slaves you specify. To run on all of them you need a multi-configuration job. You can use the slave axis to select which slaves to run on but I would recommend using the Elastic Axis plugin (https://wiki.jenkins-ci.org/display/JENKINS/Elastic+Axis). This allows you to specify a label common to all your slaves to run on, and to ignore running on any slaves which are offline so it is more robust in a system where slaves are added and removed and sometimes go offline.

Hope this helps,

-Mike

David Aldrich

unread,
Nov 4, 2015, 11:45:37 AM11/4/15
to jenkins...@googlegroups.com

Thanks Mike, that does help.

 

David

 

--

Reply all
Reply to author
Forward
0 new messages