title: How to get the Pipeline #XXXXXXXXX value displayed on gitlab UI inside .gitlab-ci.yml
body: <p>The title pretty much says it all.
  I want to be able to get the value below as an environment variable in my .gitlab-ci.yml
  <a href="https://i.stack.imgur.com/W1RvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W1RvQ.png" alt="Pipeline value I wish to get" /></a></p>
  <p>I tried both <code>${CI_PIPELINE_ID}</code> and <code>${CI_PIPELINE_IID}</code> but in the first case I got an incremental value and in the second I got a different value from the one displayed below.</p>
  <p>Does anyone know how to?</p>
  <p>Thanks in advance</p>