title: Jenkins pipeline agent with label or node call slave node?
body: <p>Someone ask about how to create an agent and it create a slave node (<a href="https://stackoverflow.com/questions/47651682/what-does-the-agent-mean-in-jenkins/47652449#47652449">here</a>), and I don't know if it's true or no : </p>
  
  
  
  <pre class="lang-groovy prettyprint-override"><code>agent {
    label 'my-defined-label'
  }
  </code></pre>
  
  <p>and</p>
  
  <pre class="lang-groovy prettyprint-override"><code>agent {
    node {
      label 'my-defined-label'
      customWorkspace '/some/other/path'
    }
  }
  </code></pre>
  
  <p>So 'my-defined-label' is just slave name?</p>
  
  <p>Thanks for the answers</p>