calculated labels in matrix build

20 views
Skip to first unread message

Lode Leroy

unread,
Dec 16, 2014, 11:08:40 AM12/16/14
to jenkins...@googlegroups.com
hello,

I would like to configure a matrix build, and control on which slaves
each build version is being built.

I have one axis for platform, with values "mac" and "win"
I have a second axis for component, with values "client", "client2" and "server"

I would like to add a label, based on the combination of component and
platform, as follows:


              mac        win
----------+---------+---------
--
client    |   clang |    vc12
client2   |   gcc   |    vc12
server    |    -    |    vc12_x64


and then configure 3 slaves:
slave1: labels mac + clang
slave2: labels mac + gcc
slave3: labels win + vc12 + vc12_x64

so that the labels are used for selecting the slave to build on.


Is there an easy way to do this?


thanks.
-- lode

Mark Waite

unread,
Dec 16, 2014, 11:15:27 AM12/16/14
to jenkins...@googlegroups.com
I use the Implied labels plugin to imply a label "linux" based on labels generated automatically by the platform labeler plugin.  The platform labeler provides "Ubuntu" and "CentOS" and more, and I imply "linux" as a label for those machines with either "Ubuntu" or "CentOS".

Would that meet your needs?

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/dc54b7e0-2a45-443e-97f2-6ad92d6726a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Lode Leroy

unread,
Dec 17, 2014, 9:53:42 AM12/17/14
to jenkins...@googlegroups.com
not entirely what I was looking for, but I think the "Groovy Label Assigmnent Plugin" will do what I want...
Reply all
Reply to author
Forward
0 new messages