跳到主要内容

List

Learn how list all pipeline executions in Buddy

信息

The documentation applies to models in the new version buddy.v1.1.0 For the REST API to work correctly, you should send the header X-Buddy-Media-Type: buddy.v1.1.0 You can read more about changes here.

Returns the list of executions of the specified pipeline.

要求权限范围: WORKSPACE, EXECUTION_INFO

资源URL

GET /workspaces/:domain/projects/:project_name/pipelines/:pipeline_id/executions

URL参数

名称类型描述
domain
必填
String工作区域名
pipeline_id
必填
IntegerThe numerical ID of the desired scenario.
project_name
必填
String项目名称ID

GET参数

名称类型描述
pageInteger连续页面的数量(结果由每个 per_page 元素页面划分)
per_pageInteger页面上返回元素数量

示例

请求

GET https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/executions?page=1&per_page=2

示例响应

HTTP

Status: 200 OK
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999

JSON

{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/executions",
"executions": [
{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/executions/1",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2/execution/56fa2a981faaf061c7c9e0a0",
"id": 1,
"start_date": "2016-03-29T07:11:20.278Z",
"finish_date": "2016-03-29T07:11:22.527Z",
"priority": "NORMAL",
"triggeredOn": "CLICK",
"refresh": false,
"status": "SUCCESSFUL",
"comment": "",
"branch": {
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches/master",
"html_url": "https://app.buddy.works/buddy/company-website/repository/branch/master",
"name": "master",
"default": true
},
"to_revision": {
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/repository/commits/506a3963507943d6908154f4bc9646e829128a08",
"html_url": "https://app.buddy.works/buddy/company-website/repository/commit/506a3963507943d6908154f4bc9646e829128a08",
"revision": "506a3963507943d6908154f4bc9646e829128a08",
"author_date": "2016-01-19T12:36:33Z",
"commit_date": "2016-01-19T12:36:33Z",
"message": "init repo\n",
"committer": {
"url": "https://api.buddy.works/workspaces/buddy/member/1",
"html_url": "https://app.buddy.works/buddy/profile/1",
"id": 1,
"name": "Mike Benson",
"avatar_url": "https://app.buddy.works/image-server/user/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png"
},
"author": {
"url": "https://api.buddy.works/workspaces/buddy/member/1",
"html_url": "https://app.buddy.works/buddy/profile/1",
"id": 1,
"name": "Mike Benson",
"avatar_url": "https://app.buddy.works/image-server/user/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png"
}
},
"creator": {
"url": "https://api.buddy.works/workspaces/buddy/member/1",
"html_url": "https://app.buddy.works/buddy/profile/1",
"id": 1,
"name": "Mike Benson",
"avatar_url": "https://app.buddy.works/image-server/user/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png"
}
}
]
}