DevStar-查询流水线最近一次运行状态查询接口:响应示例

时间:2025-02-12 14:54:11

响应示例

状态码: 200

ok

{  "pipeline_id" : "ffa5be0cf22f4435a39109c34cafa37f",  "name" : "20200520",  "status" : "completed",  "executor" : "devstar_user",  "start_time" : "2020-06-12 09:28:32.0",  "finish_time" : "2020-06-12 09:30:56.0",  "detail_url" : "https://xxx.xxx.xxx.com/pipeline/project/7455xxxxe08dxxxx9dfcxxxxcfd331bd/pipeline/detail/ffa5xxxxf22fxxxxa39109c34cafxxxx",  "modify_url" : "https://xxx.xxx.xxx.com/pipeline/project/7455xxxxe08dxxxx9dfcxxxxcfd331bd/pipeline/modify/ffa5xxxxf22fxxxxa39109c34cafxxxx",  "build_id" : 3,  "stages" : [ {    "display_name" : "源代码",    "status" : "completed",    "result" : "success"  } ]}

状态码: 400

Bad Request

{  "error_code" : "DEVSTAR.1001",  "error_msg" : "pipeline_id : 非法参数"}

状态码: 401

Unauthorized

{  "error_code" : "DEV.00000001",  "error_msg" : "未识别到用户认证信息"}

状态码: 403

Forbidden

{  "error_code" : "DEVSTAR.1034",  "error_msg" : "无操作权限"}
support.huaweicloud.com/api-devstar/ShowPipelineLastStatusV2.html