Get details and logs
Learn how to get details and logs of a single action in a pipeline execution
信息
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 details and logs for a specific action in the defined pipeline execution.
要求权限范围: WORKSPACE
, EXECUTION_INFO
资源URL
GET /workspaces/:domain/projects/:project_name/pipelines/:pipeline_id/executions/:execution_id/action/:action_id
URL参数
名称 | 类型 | 描述 |
---|---|---|
domain 必填 | String | 工作区域名 |
execution_id 必填 | Integer | The numerical ID of the desired execution. |
pipeline_id 必填 | Integer | 所需流水线的数字ID |
project_name 必填 | String | 项目名称ID |
示例
请求
GET https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/executions/1/action/2
示例响应
HTTP
Status: 200 OK
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999
JSON
{
"status": "SUCCESSFUL",
"progress": 100,
"action": {
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions/2",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/action/2/edit",
"id": 2,
"name": "Build application",
"type": "BUILD",
"trigger_time": "ON_EVERY_EXECUTION",
"last_execution_status": "SUCCESSFUL",
"disabled": false
},
"log": [
"Pulling image library/ubuntu:latest",
"Executing command: echo 'Hello world!'",
"'Hello world!'",
"Build finished successfully!"
]
}
信息
status
in last_execution_status can be either SUCCESSFUL
, FAILED
, INPROGRESS
, ENQUEUED
, SKIPPED
, TERMINATED
, NOT_EXECUTED
, or INITIAL