Hi,

a big thanks!

BR
Dirk

2012/6/7 cjo <[email protected]>:
> Hi Dirk,
>
> Looks like you need to use one of the LabelExpression which are the other
> subclass of Label,
> in your example case the LabelExpression.Or would be needed.
>
> The code would be
>
> job.setAssignedLabel(
>     new hudson.model.labels.LabelExpression.Or(
>         new hudson.model.labels.LabelAtom("unit-tests"),
>         new hudson.model.labels.LabelAtom("master")
>     )
> )
>
>
> http://javadoc.jenkins-ci.org/hudson/model/labels/LabelExpression.Or.html
>
> http://javadoc.jenkins-ci.org/hudson/model/Label.html
>

--
Never trust a short-haired guru


-- 
Never trust a short-haired guru

Reply via email to