title: How to retrieve job name in parameterized Jenkins Pipeline Project
body: <p>I have a parameterized pipeline project with active choices parameter, where choice list is dynamically populated by groovy script. I need to retrieve and use current job name in the script. The following line works for me in Freestyle Projects:</p>
  
  <pre><code>def jobName = this.binding.jenkinsProject.name
  </code></pre>
  
  <p>However when I try to use it in Pipeline Project I get:</p>
  
  <pre><code>No such property: jenkinsProject for class: groovy.lang.Binding
  </code></pre>
  
  <p>In <a href="https://stackoverflow.com/questions/33107687/retrieving-jenkins-job-name-using-groovy-script-in-active-choice-reactive-parameWhy">Retrieving Jenkins job name using groovy script in Active Choice Reactive Parameter</a> it's stated that this has been resolved in Active Choices plugin v1.4. I'm using version 2.2.1 and the issue still persists. Is this property not available in Pipeline Project? Is there a workaround or an alternative?</p>