title: How to get item type details in Jenkinfile?
body: <p>I am trying to use the same Jenkinsfile for 2 different Jenkins jobs. One of them is using 'pipeline' item while the other is using 'multibranch pipeline'. Is it possible to differentiate between the item type within the Jenkinsfile at the time when a job is run? I search online but couldn't find much. Is there an environment variable which I could read?</p>
  
  <p>Using the type information I have to trigger a downstream job, where I append the branch name to the job name in case the item type is a multi branch pipeline. </p>