更新时间:2023-12-11 GMT+08:00
示例2:根据项目ID查看项目下构建任务列表
约束限制
项目已经存在并且构建任务已经在编译构建服务中创建。
涉及接口
通过用户token、项目id查看项目下用户的构建任务列表。
操作步骤
- 查看项目下构建任务列表。
- 接口信息
API文档详情请参见:查看项目下用户的构建任务列表
- 请求示例
GET https://cloudbuild-ext.ap-southeast-3.myhuaweicloud.com/v3/8391ec48637849f384dd3db5c8d61.../jobs?page_index=0&page_size=2
- 响应示例
{ "total": 35, "jobs": [{ "id": "d62d64d7782545c696ffaacc9ac9c69a", "job_name": "build-制作镜像并推送到SWR仓库", "job_creator": "b7066bfb50194e36b472a61f088bbf72", "user_name": "L0_codeci", "last_build_time": 1598438571000, "health_score": 100, "source_code": "codeci", "last_build_status": "blue", "is_finished": true, "disabled": false, "favorite": true, "is_modify": true, "is_delete": true, "is_execute": true, "is_copy": true, "is_forbidden": true, "is_view": true }, { "id": "4485de11a8e74ffdb9c9f85bafb85f83", "job_name": "build-使用SWR公共镜像", "job_creator": "b7066bfb50194e36b472a61f088bbf72", "user_name": "L0_codeci", "last_build_time": 1598438567000, "health_score": 100, "source_code": "codeci", "last_build_status": "blue", "is_finished": true, "disabled": false, "favorite": true, "is_modify": true, "is_delete": true, "is_execute": true, "is_copy": true, "is_forbidden": true, "is_view": true }] }
- 接口信息