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.