Declarative Pipeline agent directive scope limits
Agent Allocation in Heterogeneous Environments Jenkins Declarative Pipelines allow the agent directive to be defined globally or overridden at the stage level. This mechanism is intended to support heterogeneous build environments where different stages require specific OS or tool configurations. When a global agent is defined, it allocates a workspace for t