Get details and logs
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.
Required scopes: WORKSPACE
, EXECUTION_INFO
Resource URL
GET /workspaces/:domain/projects/:project_name/pipelines/:pipeline_id/executions/:execution_id/action/:action_id
URL Parameters
Name | Type | Description |
---|---|---|
domain Required | String | The workspace domain. |
execution_id Required | Integer | The numerical ID of the desired execution. |
pipeline_id Required | Integer | The numerical ID of the desired pipeline. |
project_name Required | String | The name ID of the project. |
Example
Request
GET https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/executions/1/action/2
Sample Response
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
},
"start_date": "2016-03-29T08:05:30.33Z",
"finish_date": "2016-03-29T08:05:32.623Z",
"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
Last modified on October 11, 2022