Can I define multiple agent labels in a declarative Jenkins Pipeline?

前端 未结 4 461
旧时难觅i
旧时难觅i 2020-12-24 05:17

I\'m using declarative Jenkins pipelines to run some of my build pipelines and was wondering if it is possible to define multiple agent labels.

I have a number of bu

4条回答
  •  甜味超标
    2020-12-24 05:47

    You can see the 'Pipeline-syntax' help within your Jenkins installation and see the sample step "node" reference.

    You can use exprA||exprB:

    node('small||medium') {
        // some block
    }
    

提交回复
热议问题