查询流水线最近一次运行状态查询接口
功能介绍
查询应用流水线最近一次运行状态查询接口
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v2/pipelines/{pipeline_id}/status
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
pipeline_id | 是 | String | 流水线ID |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Language | 否 | String | 语言类型 中文:zh-cn 英文:en-us |
响应参数
状态码: 200
参数 | 参数类型 | 描述 |
|---|---|---|
pipeline_id | String | 流水线id |
name | String | 流水线名称 |
status | String | 执行状态 |
result | String | 执行结果 |
executor | String | 执行人 |
start_time | String | 启动时间 |
finish_time | String | 结束时间 |
detail_url | String | 运行详情链接 |
modify_url | String | 编辑链接 |
build_id | String | 流水线执行序号 |
stages | Array of PipelineStageResp objects | 阶段信息 |
请求示例
请求uri示例
GET https://{endpoint}/v2/pipelines/03bfdd95eb694bf6bbd80cb14d9bd1c8/status 响应示例
状态码: 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" : "无操作权限"
} 状态码
状态码 | 描述 |
|---|---|
200 | ok |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
错误码
请参见错误码。

