title: IBM Bluemix DevOps pipeline - Is there an environment variable to retrieve the current stage id
body: <p>Having a look at the comments at the bottom of <a href="https://stackoverflow.com/questions/32100405/ibm-devops-pipeline-how-to-access-artifacts-from-previous-job">this post</a>, it seems that it is possible to use curl to download the artifacts produced by a build job.</p>
  
  <p>Indeed, I could successfully grab the output of a build job by calling a url like: <a href="https://hub.jazz.net/pipeline/username/projectName/download/stageId/jobId" rel="nofollow noreferrer">https://hub.jazz.net/pipeline/username/projectName/download/stageId/jobId</a>‌/latest</p>
  
  <p>The jobId in the url above corresponds to the env variable IDS_JOB_ID, which is available inside a pipeline stage.</p>
  
  <p>But now, I am looking for an env variable that contains the stageId.
  Is there such an env variable available inside the Bluemix devops pipeline?</p>
  
  <p>Thanks.</p>