title: How to get the displayName of a Jenkins Multibranch Pipeline Job
body: <p>I've put all my Jenkins logic in a structured pipeline script (aka Jenkinsfile).</p>
  
  <p>If something goes wrong, i m sending mails. For the subject i want to use the <code>displayName</code> of the job and not the jobs id <code>env.JOB_NAME</code> (as they are driven by access control patterns and not readability).</p>
  
  <p>With a normal pipeline job i could use <code>currentBuild.rawBuild.project.displayName</code> but for multibranch pipelines this is just the branch name.</p>
  
  <p>Or is there a even better way to get the userfriendly name, then traversing the rawBuild?</p>