Assigning Pipeline operations to specific Agents using Labels
In the case of the supplied MettleCI Upgrade Pipeline certain Pipeline operations need to happen in specific Agents - i.e. some operations must execute on your environment’s legacy Agent, whilst others need to be assigned to a target Agent. To achieve this the MettleCI Sample Jenkins Pipeline assumes the availability of two Agent labels which you should have created and assigned:
...
Info | ||||
---|---|---|---|---|
Note that the DevOps Pipeline only assumes the presence of a single Agent with the
|
...
Assigning Pipeline operations to Agents using Labels
The agent
sections of your Jenkins Pipeline definition denote which Jenkins Agents your Pipeline can be executed on. More specifically, it denotes which labels will be used to dynamically select an execution Agent from the pool of available Agents.
...