Build

查询流水线构建列表。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

get/{repo}/-/build/logs

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

repostring required

仓库路径。Repo path.

Query parameters

createTimestring

起始日期,格式 "YYYY-MM-DD",例如 "2024-12-01"。 Start date in "YYYY-MM-DD" format, e.g. "2024-12-01".

endTimestring

结束日期,格式 "YYYY-MM-DD",例如 "2024-12-01"。End date in "YYYY-MM-DD" format, e.g. "2024-12-01".

eventstring

事件名称,例如 "push"。Event name, e.g. "push"

pageinteger

分页页码,默认1。Pagination page number, default(1)

page_sizeinteger

分页页大小,默认30,最大100。Pagination page size, default(30), max(100)

shastring

提交ID。Commit ID.

snstring

构建序列号,例如 "cnb-1qa-1i3f5ecau"。Build SN, e.g. "cnb-1qa-1i3f5ecau"

sourceRefstring

源分支名称,例如 "dev"。Source branch name, e.g. "dev"

statusstring

构建状态:"pending"、"success"、"error"、"cancel"。Build status: "pending", "success", "error", "cancel"

targetRefstring

目标分支名称,例如 "main"。Target branch name, e.g. "main"

userIdstring

用户ID。User ID.

userNamestring

用户名。Username.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.