查询流水线构建列表。List pipeline builds.
分页查询仓库的流水线构建历史记录,支持按分支、事件、状态等条件筛选。 Paginate the pipeline build history of a repository. Supports filtering by branch, event, status, and more. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-cnb-history:r
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/build/logs
- Auth: API key in header Authorization
Path parameters
仓库路径。Repo path.
Query parameters
起始日期,格式 "YYYY-MM-DD",例如 "2024-12-01"。 Start date in "YYYY-MM-DD" format, e.g. "2024-12-01".
结束日期,格式 "YYYY-MM-DD",例如 "2024-12-01"。End date in "YYYY-MM-DD" format, e.g. "2024-12-01".
事件名称,例如 "push"。Event name, e.g. "push"
分页页码,默认1。Pagination page number, default(1)
分页页大小,默认30,最大100。Pagination page size, default(30), max(100)
提交ID。Commit ID.
构建序列号,例如 "cnb-1qa-1i3f5ecau"。Build SN, e.g. "cnb-1qa-1i3f5ecau"
源分支名称,例如 "dev"。Source branch name, e.g. "dev"
构建状态:"pending"、"success"、"error"、"cancel"。Build status: "pending", "success", "error", "cancel"
目标分支名称,例如 "main"。Target branch name, e.g. "main"
用户ID。User ID.
用户名。Username.
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.