Does the NodeLabelParameter plugin support more than one Label parameter in a project?

8 views
Skip to first unread message

Stuart Rowe

unread,
Feb 4, 2014, 2:30:02 PM2/4/14
to jenkins...@googlegroups.com
In my situation I have build machines divided into two categories: A and B. The nodes for each machine are labelled accordingly.

I also have platforms associated with each machine (one or more of x, y, z). These are also included in the labels for each node.

I would like to set up a project with two label parameters machineType and platform so that a node is selected that has a label matching machineType AND platform. As far as I can tell, the NodeLabelParameter plugin only attempts to match at least one label before selecting a node.

Is this the expected behavior?


Marc MacIntyre

unread,
Feb 4, 2014, 2:46:33 PM2/4/14
to jenkins...@googlegroups.com
Pass a boolean expression: (A&&y)


--
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.
For more options, visit https://groups.google.com/groups/opt_out.



--
Marc MacIntyre

Stuart Rowe

unread,
Feb 4, 2014, 4:22:46 PM2/4/14
to jenkins...@googlegroups.com
thanks for the reply Mark - that is one solution I could use as a last resort. I was hoping that the plugin would be doing that boolean expression internally for each label parameter.

I've pulled the source from github - maybe I can find a solution.


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/PI5iFT0VgnU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages