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.

Reply via email to