title: jenkins execute shell on a specific agent/node
body: <p>I have to execute a shell on specific agent/node in jenkins. I tried to do it in pipeline and it works but not sure how to do it in shell job.</p>
  
  <p>Below thing is working in pipeline</p>
  
  <pre><code>pipeline {
      agent { label 'N1' }
  }
  </code></pre>
  
  <p>Could not get anything to pick a specific agent while running a shell project. I need shell project to execute some shell commands, it always pick master agent.</p>