编译构建 CODEARTS BUILD-根据开始时间和结束时间查看构建任务的构建历史列表:响应参数

时间:2023-11-28 10:22:11

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

total

Integer

记录总数

history_records

Array of history_records objects

构建历史列表

表5 history_records

参数

参数类型

描述

record_id

String

构建记录id--唯一key

job_id

String

任务id

build_number

Integer

构建编号

start_time

String

构建开始时间

end_time

String

构建结束时间

result

String

构建结果

branch

String

代码分支

commit_id

String

代码提交的commit id

commit_message

String

代码提交时用户输入的提交信息,只有使用Repo仓库时有值

executor

String

执行构建任务的用户的用户名

trigger_type

String

触发方式,可选值:手工触发,定时触发,代码更新触发,流水线触发

状态码: 400

表6 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 401

表7 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 403

表8 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 404

表9 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 500

表10 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

support.huaweicloud.com/api-codeci/ShowListPeriodHistory.html