0

Having a look at the comments at the bottom of this post, it seems that it is possible to use curl to download the artifacts produced by a build job.

Indeed, I could successfully grab the output of a build job by calling a url like: https://hub.jazz.net/pipeline/username/projectName/download/stageId/jobId‌/latest

The jobId in the url above corresponds to the env variable IDS_JOB_ID, which is available inside a pipeline stage.

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?

Thanks.

Community
  • 1
  • 1
Johan Mereaux
  • 143
  • 11

1 Answers1

1

There is currently no environment variable for the stage id. You can grab the stage id for a stage from the url of the stage configuration page. Note: the IDS_JOB_ID that is available is for the current job that is running.

crjenkins89
  • 421
  • 2
  • 4
  • Thanks for the info. Yes I noticed that the stageId could be grabbed from the url of the stage config or log/history page. But I was looking for a way to do this dynamically inside a job. If there is no such env variable in the pipeline, I am afraid I won't be able to do what I want then :-( – Johan Mereaux May 26 '16 at 14:18
  • If this function is something that you need, consider adding the request to the Bluemix Ideas site at the following URL: https://ibm-bluemix.uservoice.com/forums/311383-ibm-bluemix-ideas – William 'Bill' Wentworth May 26 '16 at 21:50