Skip to content

Add retried builds in pipeline stage endpoint

As part of gitlab-org/gitlab-ce#50101 a new endpoint needs to be created to send the pipeline information.

pipeline side bar

This JSON response needs to show all the information in the selected lines of this HAML template.

Implemtantion

Inside the job response a property pipeline.path which is a link to the pipeline information, an example response can be found here where an overview of the full pipeline is.

Inside of pipeline.path/stage.json?stage=$STAGENAMEyou will get the jobs specified for the stage. To the retried build you have to use the same endpointpipeline.path/stage.json?stage=$STAGENAME&retried=1, notice the new query parameter retired, if set in the response there will be a new properties retired with all the retired jobs an example can be found here.

Edited by Steve Xuereb