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

前端 未结 4 477
旧时难觅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:59

    Create a another label call 'small-or-medium' that has 6 all agents. Then in Jenkinsfile:

    agent { label 'small-or-medium' }
    

提交回复
热议问题