jenkins pipeline: agent vs node? : <p>What is the difference between an <strong>agent</strong> and a <strong>node</strong> in a jenkins pipeline?</p>

<p>I've found those definitions:</p>

<ul>
<li><a href="https://jenkins.io/doc/book/pipeline/" rel="noreferrer">node</a>: Most work a Pipeline performs is done in the context of one or more declared node steps.</li>
<li><a href="https://jenkins.io/doc/book/pipeline/syntax/#agent" rel="noreferrer">agent</a>: 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.</li>
</ul>

<p>So both are used for executing pipeline steps. But when to use which one?</p>
