It is not possible because the definition of pipeline level status can vary from one person to another.
For instance, the 2nd stage could be validation that I don't care much as long as the 3rd stage is green (after manually approving it) and things like that. Ideally you only want to check the status of the stage you're interested in rather than the entire pipeline. This is how the pipeline dependencies also work. Hope this helps. Thanks, On Fri, Jun 7, 2024, 16:23 'Hans Dampf' via go-cd <[email protected]> wrote: > Hi, > > it would be great if the api request on > /go/api/pipelines/<pipeline>/<counter> would have a general pipeline > status. > > The stage have one, but it would be alot easier to work with if the last > status is access able on the toplevel. Currently, you have to parse all > stages to get the pipeline status. > Currently : > { > "name" : "Pipeline 1", > "counter" : 2641, > "label" : "2641", > "natural_order" : 2641.0, > "can_run" : true, > "preparing_to_schedule" : false, > "comment" : null, > "scheduled_date" : 1717756828914, > "build_cause" : { > "trigger_message" : "User", > "trigger_forced" : true, > "approver" : "User", > "material_revisions" : [ { > "changed" : false, > "material" : { > ... > }, > "modifications" : [ { > ... > } ] > } ] > }, > "stages" : [ { > "result" : "Passed", > "status" : "Passed", > ... > } ] > }, { > "result" : "Unknown", > "status" : "Building", > ... > } ] > } ] > } > > Changed: > Changed: > { > "name" : "Pipeline 1", > >>> "status" : "Building", <<<<< > "counter" : 2641, > "label" : "2641", > "natural_order" : 2641.0, > "can_run" : true, > "preparing_to_schedule" : false, > "comment" : null, > "scheduled_date" : 1717756828914, > "build_cause" : { > "trigger_message" : "User", > "trigger_forced" : true, > "approver" : "User", > "material_revisions" : [ { > "changed" : false, > "material" : { > ... > }, > "modifications" : [ { > ... > } ] > } ] > }, > "stages" : [ { > "result" : "Passed", > "status" : "Passed", > ... > } ] > }, { > "result" : "Unknown", > "status" : "Building", > ... > } ] > } ] > } > > > > Regards > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/031c7115-4290-40ff-8646-e9976b08fd6en%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/031c7115-4290-40ff-8646-e9976b08fd6en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAD9m7CzxHFe6NqEpFYMhSqPO5TZnFqfajfeA4K98-aA9h%3DXgSg%40mail.gmail.com.
