What is the difference between an agent and a node in a jenkins pipeline?
I've found those definitions:
- Node: A Pipeline performs most of the work in the context of one or more declared node steps.
- Agent: The agent directive specifies where the entire Pipeline, or a specific stage, will execute in the Jenkins environment depending on where the agent directive is placed.
So both are used for executing pipeline steps. But when to use which one?