Multi-configuration project from parameters.

28 views
Skip to first unread message

Fred Clausen

unread,
Jul 4, 2016, 7:13:55 PM7/4/16
to Jenkins Users
Hello,

We have a artifact cache cleaning job that uses the multi-configuration's "configuration matrix" to select slaves to run on (via the "slaves" axis). Unfortunately we have to manually select slaves and if a new one is added then remember to select that one as well; we'd like to automate this. I thought about using the "node label" in the "slaves" axis but that ends up only running on one of the nodes for the selected label.

Can I pass a parameter list to the multi-configuration project and then have it use that as an axis upon which it'll decide which slaves to run a job on? (a job DSL job would construct that parameter). Or is there some other mechanism by which to run a script on a given list of slaves?

Thanks,

Fred.

Mark Waite

unread,
Jul 4, 2016, 8:00:31 PM7/4/16
to Jenkins Users
Elastic axis plugin allows you to define a job which runs on all slaves which match a certain label.  I use it to run certain jobs on all slaves.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f4433162-096c-426c-8c11-adad81d8c090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fred Clausen

unread,
Jul 4, 2016, 9:20:47 PM7/4/16
to Jenkins Users
Thanks Mark, I'll check that out.
Reply all
Reply to author
Forward
0 new messages