You should be able to use label expressions. As I understand your question, you 
want an agent that has both the “centos6" and “x86_64" labels, so the label 
expression to use would be “centos64 && x86_64”, which I think should work fine 
with declarative pipeline, although I haven’t tested it.

    agent { label “x86_64 && centos6" } 

 The help text for the node step in scripted pipeline covers the various 
operators that are supported: 
https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#node-allocate-node
 
<https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#node-allocate-node>.

> On Sep 11, 2018, at 04:24, bruce.bec...@egi.eu wrote:
> 
> Hi, 
> 
> simple question - how would I declare an agent with more than one label, like 
> 
> agent { 
>   label "centos6"
>   label "x86_64" 
> } 
> 
> or agent { label "x86_64 centos6" } 
> 
> or something else?
> 
> -- 
> 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-users+unsubscr...@googlegroups.com 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/a45411be-ecbc-4e67-b577-25372cef9dd2%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/a45411be-ecbc-4e67-b577-25372cef9dd2%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4C0A688F-8F91-4C98-86F0-867932A66885%40cloudbees.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to