title: How to get slave name on which jenkins pipeline job is executed via API
body: <p>I am trying to get slave name on which jenkins pipeline job is executed via API.
  For free style jobs I am able to get using:</p>
  
  <pre><code>JENKINS_URL/job/JOB_NAME/BUILD_NUMBER/api/json?tree=builtOn
  </code></pre>
  
  <p>But for pipeline job, this info is not present in JSON output.</p>