获取任务各阶段信息
功能介绍
获取任务各阶段信息
调用方法
请参见如何调用API。
URI
GET /v1/record/{record_id}/full-stages
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
record_id |
是 |
String |
参数解释: 构建记录ID。 约束限制: 不涉及。 取值范围: 36位数字、小写字母、'-'组组合。 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
cascade |
否 |
Boolean |
是否联级获取steps |
请求参数
无
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
status |
String |
状态 |
error |
Object |
错误 |
result |
result object |
结果 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
步骤编号 |
status |
String |
步骤状态 |
status_code |
String |
状态码 |
log_status |
String |
日志状态 |
create_time |
String |
创建时间 |
schedule_time |
String |
构建下发时间 |
queued_time |
String |
构建排队耗时 |
start_time |
String |
开始时间 |
finish_time |
String |
结束时间 |
duration |
String |
构建时长 |
build_duration |
String |
子任务构建耗时 |
pending_duration |
String |
等待时间 |
build_record_id |
String |
构建记录ID |
execution_id |
String |
八爪鱼任务ID |
execution_stage_name |
String |
步骤名称 |
display_name |
String |
步骤名称 |
node_id |
String |
节点ID |
sequence |
String |
序号 |
状态码:400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误描述 |
状态码:401
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误描述 |
状态码:403
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误描述 |
状态码:404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误描述 |
状态码:500
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码 |
error_msg |
String |
错误描述 |
请求示例
GET https://{endpoint}/v1/record/901878212b1a49be9c1a1054c272762a/full-stages
响应示例
状态码:200
OK
{
"result" : {
"build_stages" : {
"initial" : {
"id" : "a2866f49-76f6-4aa1-b26b-f91b2f95e2e7",
"status" : "ABORTED",
"status_code" : 8,
"log_status" : null,
"create_time" : "2024-09-24T03:18:49.000+00:00",
"schedule_time" : "2024-09-24T03:18:49.000+00:00",
"queued_time" : "2024-09-24T03:18:50.000+00:00",
"start_time" : "2024-09-24T03:18:51.000+00:00",
"finish_time" : "2024-09-24T03:18:59.000+00:00",
"duration" : 10000,
"build_duration" : 9000,
"pending_duration" : 1000,
"build_record_id" : "94baa8ec-fd3f-4cae-81af-b24385a7220f",
"execution_id" : "j_fDyt05ip",
"execution_stage_name" : "initial",
"display_name" : "initial",
"node_id" : 9,
"sequence" : 0
},
"stage1" : {
"id" : "c42a2957-df7e-4304-a759-3e4d02c456ed",
"status" : "ABORTED",
"status_code" : 8,
"log_status" : null,
"create_time" : "2024-09-24T03:18:49.000+00:00",
"schedule_time" : "2024-09-24T03:18:49.000+00:00",
"queued_time" : "2024-09-24T03:18:49.000+00:00",
"start_time" : "2024-09-24T03:18:49.000+00:00",
"finish_time" : "2024-09-24T03:18:59.000+00:00",
"duration" : 0,
"build_duration" : 0,
"pending_duration" : 0,
"build_record_id" : "94baa8ec-fd3f-4cae-81af-b24385a7220f",
"execution_id" : "j_fDyt05ip",
"execution_stage_name" : "stage1",
"display_name" : "Cache Check",
"node_id" : null,
"sequence" : 1
},
"stage2" : {
"id" : "03cb8420-29c0-42d5-91bf-ff65e101f165",
"status" : "ABORTED",
"status_code" : 8,
"log_status" : null,
"create_time" : "2024-09-24T03:18:49.000+00:00",
"schedule_time" : "2024-09-24T03:18:49.000+00:00",
"queued_time" : "2024-09-24T03:18:49.000+00:00",
"start_time" : "2024-09-24T03:18:49.000+00:00",
"finish_time" : "2024-09-24T03:18:59.000+00:00",
"duration" : 0,
"build_duration" : 0,
"pending_duration" : 0,
"build_record_id" : "94baa8ec-fd3f-4cae-81af-b24385a7220f",
"execution_id" : "j_fDyt05ip",
"execution_stage_name" : "stage2",
"display_name" : "Code CheckOut",
"node_id" : null,
"sequence" : 2
},
"stage3" : {
"id" : "d8e3269e-ba5b-46eb-bd57-32e99dcacdf2",
"status" : "ABORTED",
"status_code" : 8,
"log_status" : null,
"create_time" : "2024-09-24T03:18:49.000+00:00",
"schedule_time" : "2024-09-24T03:18:49.000+00:00",
"queued_time" : "2024-09-24T03:18:49.000+00:00",
"start_time" : "2024-09-24T03:18:49.000+00:00",
"finish_time" : "2024-09-24T03:18:59.000+00:00",
"duration" : 0,
"build_duration" : 0,
"pending_duration" : 0,
"build_record_id" : "94baa8ec-fd3f-4cae-81af-b24385a7220f",
"execution_id" : "j_fDyt05ip",
"execution_stage_name" : "stage3",
"display_name" : "Maven",
"node_id" : null,
"sequence" : 3
},
"final" : {
"id" : "ad40acdf-4ec9-4998-a425-5b32778d6e06",
"status" : "ABORTED",
"status_code" : 8,
"log_status" : null,
"create_time" : "2024-09-24T03:18:49.000+00:00",
"schedule_time" : "2024-09-24T03:18:49.000+00:00",
"queued_time" : "2024-09-24T03:18:49.000+00:00",
"start_time" : "2024-09-24T03:18:49.000+00:00",
"finish_time" : "2024-09-24T03:18:59.000+00:00",
"duration" : 0,
"build_duration" : 0,
"pending_duration" : 0,
"build_record_id" : "94baa8ec-fd3f-4cae-81af-b24385a7220f",
"execution_id" : "j_fDyt05ip",
"execution_stage_name" : "final",
"display_name" : "final",
"node_id" : null,
"sequence" : 4
}
}
},
"error" : null,
"status" : "success"
}
状态码
状态码 |
描述 |
---|---|
200 |
OK |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
Internal Server Error |
错误码
请参见错误码。