# Buildkite

> Start, cancel and rebuild Buildkite builds, manage pipelines, unblock and retry jobs, read logs and artifacts, annotate builds, and follow new, passed, failed and blocked builds.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/buildkite

## Actions

### Archive pipeline

Archive a pipeline: it becomes read-only and hidden, and its builds are kept.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "allow_rebuilds": true,
    "archived_at": "example",
    "branch_configuration": "example",
    "builds_url": "example",
    "cancel_running_branch_builds": true,
    "cluster_id": "example",
    "configuration": "example",
    "created_at": "example",
    "default_branch": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "repository": "example",
    "skip_queued_branch_builds": true,
    "slug": "example",
    "tags": [
      "example"
    ],
    "url": "example",
    "visibility": "example",
    "web_url": "example"
  }
}
```

### Cancel build

Cancel a build that is scheduled, running or blocked.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "blocked": true,
    "branch": "example",
    "cancel_reason": "example",
    "commit": "example",
    "created_at": "example",
    "creator": {
      "email": "example",
      "id": "example",
      "name": "example"
    },
    "env": {},
    "finished_at": "example",
    "id": "example",
    "jobs": [
      {
        "agent": {
          "hostname": "example",
          "id": "example",
          "name": "example",
          "web_url": "example"
        },
        "command": "example",
        "created_at": "example",
        "exit_status": 1,
        "finished_at": "example",
        "id": "example",
        "log_url": "example",
        "name": "example",
        "retried": true,
        "retried_in_job_id": "example",
        "retries_count": 1,
        "runnable_at": "example",
        "scheduled_at": "example",
        "soft_failed": true,
        "started_at": "example",
        "state": "example",
        "step_key": "example",
        "type": "example",
        "unblockable": true,
        "web_url": "example"
      }
    ],
    "message": "example",
    "meta_data": {},
    "number": 1,
    "pipeline": {
      "id": "example",
      "name": "example",
      "slug": "example"
    },
    "pull_request": {
      "base": "example",
      "id": "example",
      "repository": "example"
    },
    "scheduled_at": "example",
    "source": "example",
    "started_at": "example",
    "state": "example",
    "url": "example",
    "web_url": "example"
  }
}
```

### Create annotation

Add a note to the top of a build's page, in Markdown or HTML.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Body (`body`, text, required): The annotation, in Markdown or HTML.
- Style (`style`, text): How the annotation looks. Leave empty for plain. One of: `info`, `success`, `warning`, `error`.
- Context (`context`, text): A name for the annotation. A build has one annotation per name, so the same name replaces or adds to it.
- Priority (`priority`, number): Where it shows, from 1 (last) to 10 (first). Leave empty for 3. From 1 to 10.
- Append (`append`, true/false): Add the body to the end of the annotation with the same context instead of replacing it.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "body_html": "example",
    "context": "example",
    "created_at": "example",
    "id": "example",
    "job_id": "example",
    "priority": 1,
    "scope": "example",
    "style": "example",
    "updated_at": "example"
  }
}
```

### Create build

Start a new build of a pipeline on a branch and commit.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Branch (`branch`, text, required): The branch to build, such as main.
- Commit (`commit`, text): The commit SHA, tag or ref to build. Leave empty for the branch's latest commit (HEAD).
- Message (`message`, text): A message shown on the build.
- Environment variables (`env`, object): Environment variables for the build, by name.
- Meta-data (`meta_data`, object): Meta-data for the build's steps to read, by key.
- Author name (`author_name`, text): The name to show as the build's author. Leave empty for you.
- Author email (`author_email`, text): The email to show as the build's author.
- Clean checkout (`clean_checkout`, true/false): Make the agent delete its old copy of the repository and check it out afresh.
- Ignore branch filter (`ignore_pipeline_branch_filters`, true/false): Build even if the pipeline's branch filter would skip this branch.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "blocked": true,
    "branch": "example",
    "cancel_reason": "example",
    "commit": "example",
    "created_at": "example",
    "creator": {
      "email": "example",
      "id": "example",
      "name": "example"
    },
    "env": {},
    "finished_at": "example",
    "id": "example",
    "jobs": [
      {
        "agent": {
          "hostname": "example",
          "id": "example",
          "name": "example",
          "web_url": "example"
        },
        "command": "example",
        "created_at": "example",
        "exit_status": 1,
        "finished_at": "example",
        "id": "example",
        "log_url": "example",
        "name": "example",
        "retried": true,
        "retried_in_job_id": "example",
        "retries_count": 1,
        "runnable_at": "example",
        "scheduled_at": "example",
        "soft_failed": true,
        "started_at": "example",
        "state": "example",
        "step_key": "example",
        "type": "example",
        "unblockable": true,
        "web_url": "example"
      }
    ],
    "message": "example",
    "meta_data": {},
    "number": 1,
    "pipeline": {
      "id": "example",
      "name": "example",
      "slug": "example"
    },
    "pull_request": {
      "base": "example",
      "id": "example",
      "repository": "example"
    },
    "scheduled_at": "example",
    "source": "example",
    "started_at": "example",
    "state": "example",
    "url": "example",
    "web_url": "example"
  }
}
```

### Create pipeline

Create a YAML pipeline that builds a repository on a cluster's agents.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Name (`name`, text, required): The pipeline's name. Its address (slug) is made from it.
- Repository URL (`repository`, text, required): The Git repository to build, such as git@github.com:acme/app.git.
- Cluster (`cluster_id`, text, required): The cluster whose agents run the pipeline's jobs.
- Steps (YAML) (`configuration`, text, required): The pipeline's steps, in Buildkite's YAML, such as steps: followed by - command: "make test".
- Description (`description`, text): A short description of the pipeline.
- Default branch (`default_branch`, text): The branch new builds start on, such as main.
- Branch filter (`branch_configuration`, text): Only build pushes to branches matching this filter, such as main feature/*. Leave empty for every branch.
- Visibility (`visibility`, text): Who can see the pipeline. Leave empty for private. One of: `private`, `public`.
- Tags (`tags`, list): Tags to show on the pipeline.
- Skip queued branch builds (`skip_queued_branch_builds`, true/false): Skip builds on a branch that haven't started when a newer one is created.
- Cancel running branch builds (`cancel_running_branch_builds`, true/false): Cancel running builds on a branch when a newer one is created.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "allow_rebuilds": true,
    "archived_at": "example",
    "branch_configuration": "example",
    "builds_url": "example",
    "cancel_running_branch_builds": true,
    "cluster_id": "example",
    "configuration": "example",
    "created_at": "example",
    "default_branch": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "repository": "example",
    "skip_queued_branch_builds": true,
    "slug": "example",
    "tags": [
      "example"
    ],
    "url": "example",
    "visibility": "example",
    "web_url": "example"
  }
}
```

### Delete annotation

Remove an annotation from a build.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Annotation ID (`annotation_id`, text, required): The annotation's ID.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {}
}
```

### Delete pipeline

Delete a pipeline with all its builds. This can't be undone.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {}
}
```

### Get access token details

See the connected API access token's scopes, description, expiry and owner.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "description": "example",
    "expires_at": "example",
    "scopes": [
      "example"
    ],
    "user": {
      "email": "example",
      "name": "example"
    },
    "uuid": "example"
  }
}
```

### Get agent

Get an agent's state, host, queue, version and current job.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Agent (`agent_id`, text, required): The agent.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "arch": "example",
    "connected_at": "example",
    "connection_state": "example",
    "created_at": "example",
    "hostname": "example",
    "id": "example",
    "ip_address": "example",
    "job": {
      "id": "example",
      "name": "example",
      "state": "example",
      "web_url": "example"
    },
    "last_job_finished_at": "example",
    "meta_data": [
      "example"
    ],
    "name": "example",
    "os_id": "example",
    "priority": 1,
    "queue": "example",
    "user_agent": "example",
    "version": "example",
    "web_url": "example"
  }
}
```

### Get artifact download link

Get a short-lived link to download an artifact. It works for about a minute.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Job ID (`job_id`, text, required): The ID of the job that uploaded the artifact (its job_id).
- Artifact ID (`artifact_id`, text, required): The artifact's ID.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "url": "example"
  }
}
```

### Get build

Get a build by its number, with its state, commit, creator and jobs.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "blocked": true,
    "branch": "example",
    "cancel_reason": "example",
    "commit": "example",
    "created_at": "example",
    "creator": {
      "email": "example",
      "id": "example",
      "name": "example"
    },
    "env": {},
    "finished_at": "example",
    "id": "example",
    "jobs": [
      {
        "agent": {
          "hostname": "example",
          "id": "example",
          "name": "example",
          "web_url": "example"
        },
        "command": "example",
        "created_at": "example",
        "exit_status": 1,
        "finished_at": "example",
        "id": "example",
        "log_url": "example",
        "name": "example",
        "retried": true,
        "retried_in_job_id": "example",
        "retries_count": 1,
        "runnable_at": "example",
        "scheduled_at": "example",
        "soft_failed": true,
        "started_at": "example",
        "state": "example",
        "step_key": "example",
        "type": "example",
        "unblockable": true,
        "web_url": "example"
      }
    ],
    "message": "example",
    "meta_data": {},
    "number": 1,
    "pipeline": {
      "id": "example",
      "name": "example",
      "slug": "example"
    },
    "pull_request": {
      "base": "example",
      "id": "example",
      "repository": "example"
    },
    "scheduled_at": "example",
    "source": "example",
    "started_at": "example",
    "state": "example",
    "url": "example",
    "web_url": "example"
  }
}
```

### Get job log

Get the log output of one job of a build.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Job (`job_id`, text, required): The job (one step of a build).

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "content": "example",
    "size": 1,
    "url": "example"
  }
}
```

### Get pipeline

Get a pipeline's settings, steps and links.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "allow_rebuilds": true,
    "archived_at": "example",
    "branch_configuration": "example",
    "builds_url": "example",
    "cancel_running_branch_builds": true,
    "cluster_id": "example",
    "configuration": "example",
    "created_at": "example",
    "default_branch": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "repository": "example",
    "skip_queued_branch_builds": true,
    "slug": "example",
    "tags": [
      "example"
    ],
    "url": "example",
    "visibility": "example",
    "web_url": "example"
  }
}
```

### List agents

List an organization's connected agents, optionally by name, hostname or version.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Name (`name`, text): Only the agent with this name.
- Hostname (`hostname`, text): Only agents on this hostname.
- Version (`version`, text): Only agents of this exact version.
- Page (`page`, number): Which page of agents to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many agents to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "arch": "example",
      "connected_at": "example",
      "connection_state": "example",
      "created_at": "example",
      "hostname": "example",
      "id": "example",
      "ip_address": "example",
      "job": {
        "id": "example",
        "name": "example",
        "state": "example",
        "web_url": "example"
      },
      "last_job_finished_at": "example",
      "meta_data": [
        "example"
      ],
      "name": "example",
      "os_id": "example",
      "priority": 1,
      "queue": "example",
      "user_agent": "example",
      "version": "example",
      "web_url": "example"
    }
  ]
}
```

### List annotations

List the annotations shown on a build.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Page (`page`, number): Which page of annotations to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many annotations to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "body_html": "example",
      "context": "example",
      "created_at": "example",
      "id": "example",
      "job_id": "example",
      "priority": 1,
      "scope": "example",
      "style": "example",
      "updated_at": "example"
    }
  ]
}
```

### List artifacts

List the files a build's jobs uploaded, optionally by state or path.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- State (`state`, text): Only artifacts in this state. One of: `new`, `error`, `finished` (Finished (passed, failed, blocked or canceled)), `deleted`, `expired`.
- Path (`path`, text): Only artifacts at this path. A * matches any characters, such as logs/*.
- Page (`page`, number): Which page of artifacts to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many artifacts to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "dirname": "example",
      "download_url": "example",
      "file_size": 1,
      "filename": "example",
      "id": "example",
      "job_id": "example",
      "mime_type": "example",
      "path": "example",
      "sha1sum": "example",
      "state": "example"
    }
  ]
}
```

### List builds

List builds newest first, for one pipeline or the whole organization, by branch, state, commit or time.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text): The pipeline.
- Branch (`branch`, text): Only builds on this branch. A * matches any characters, such as *dev*.
- States (`state`, list): Only builds in these states. One or more of: `scheduled`, `running`, `passed`, `failing`, `failed`, `blocked`, `canceling`, `canceled`, `skipped`, `not_run` (Not run), `finished` (Finished (passed, failed, blocked or canceled)).
- Commit (`commit`, text): Only builds of this commit (its full SHA).
- Created from (`created_from`, date and time): Only builds created at or after this time.
- Created before (`created_to`, date and time): Only builds created before this time.
- Finished from (`finished_from`, date and time): Only builds that finished at or after this time.
- Include jobs (`include_jobs`, true/false): Include each build's jobs. Leave off for a quicker answer.
- Page (`page`, number): Which page of builds to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many builds to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "blocked": true,
      "branch": "example",
      "cancel_reason": "example",
      "commit": "example",
      "created_at": "example",
      "creator": {
        "email": "example",
        "id": "example",
        "name": "example"
      },
      "env": {},
      "finished_at": "example",
      "id": "example",
      "jobs": [
        {
          "agent": {
            "hostname": "example",
            "id": "example",
            "name": "example",
            "web_url": "example"
          },
          "command": "example",
          "created_at": "example",
          "exit_status": 1,
          "finished_at": "example",
          "id": "example",
          "log_url": "example",
          "name": "example",
          "retried": true,
          "retried_in_job_id": "example",
          "retries_count": 1,
          "runnable_at": "example",
          "scheduled_at": "example",
          "soft_failed": true,
          "started_at": "example",
          "state": "example",
          "step_key": "example",
          "type": "example",
          "unblockable": true,
          "web_url": "example"
        }
      ],
      "message": "example",
      "meta_data": {},
      "number": 1,
      "pipeline": {
        "id": "example",
        "name": "example",
        "slug": "example"
      },
      "pull_request": {
        "base": "example",
        "id": "example",
        "repository": "example"
      },
      "scheduled_at": "example",
      "source": "example",
      "started_at": "example",
      "state": "example",
      "url": "example",
      "web_url": "example"
    }
  ]
}
```

### List clusters

List an organization's clusters, the groups of agents and queues that run jobs.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Page (`page`, number): Which page of clusters to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many clusters to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "color": "example",
      "created_at": "example",
      "default_queue_id": "example",
      "description": "example",
      "emoji": "example",
      "id": "example",
      "name": "example",
      "web_url": "example"
    }
  ]
}
```

### List jobs

List the jobs (steps) of a build with their state and exit status.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Page (`page`, number): Which page of jobs to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many jobs to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "agent": {
          "hostname": "example",
          "id": "example",
          "name": "example",
          "web_url": "example"
        },
        "command": "example",
        "created_at": "example",
        "exit_status": 1,
        "finished_at": "example",
        "id": "example",
        "log_url": "example",
        "name": "example",
        "retried": true,
        "retried_in_job_id": "example",
        "retries_count": 1,
        "runnable_at": "example",
        "scheduled_at": "example",
        "soft_failed": true,
        "started_at": "example",
        "state": "example",
        "step_key": "example",
        "type": "example",
        "unblockable": true,
        "web_url": "example"
      }
    ]
  }
}
```

### List organizations

List the Buildkite organizations the token can reach.

**Inputs**

- Page (`page`, number): Which page of organizations to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many organizations to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "id": "example",
      "name": "example",
      "slug": "example",
      "url": "example",
      "web_url": "example"
    }
  ]
}
```

### List pipelines

List an organization's pipelines, optionally by name or repository.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Name contains (`name`, text): Only pipelines whose name contains this text.
- Repository contains (`repository`, text): Only pipelines whose repository URL contains this text.
- Page (`page`, number): Which page of pipelines to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many pipelines to return on a page, up to 100. Buildkite's default is 30. From 1 to 100.

**Outputs**

- `data` (list): The response from Buildkite.

**Example output**

```json
{
  "data": [
    {
      "allow_rebuilds": true,
      "archived_at": "example",
      "branch_configuration": "example",
      "builds_url": "example",
      "cancel_running_branch_builds": true,
      "cluster_id": "example",
      "configuration": "example",
      "created_at": "example",
      "default_branch": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "repository": "example",
      "skip_queued_branch_builds": true,
      "slug": "example",
      "tags": [
        "example"
      ],
      "url": "example",
      "visibility": "example",
      "web_url": "example"
    }
  ]
}
```

### Rebuild build

Start a new build with the same commit, branch, message and environment as an earlier one.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "blocked": true,
    "branch": "example",
    "cancel_reason": "example",
    "commit": "example",
    "created_at": "example",
    "creator": {
      "email": "example",
      "id": "example",
      "name": "example"
    },
    "env": {},
    "finished_at": "example",
    "id": "example",
    "jobs": [
      {
        "agent": {
          "hostname": "example",
          "id": "example",
          "name": "example",
          "web_url": "example"
        },
        "command": "example",
        "created_at": "example",
        "exit_status": 1,
        "finished_at": "example",
        "id": "example",
        "log_url": "example",
        "name": "example",
        "retried": true,
        "retried_in_job_id": "example",
        "retries_count": 1,
        "runnable_at": "example",
        "scheduled_at": "example",
        "soft_failed": true,
        "started_at": "example",
        "state": "example",
        "step_key": "example",
        "type": "example",
        "unblockable": true,
        "web_url": "example"
      }
    ],
    "message": "example",
    "meta_data": {},
    "number": 1,
    "pipeline": {
      "id": "example",
      "name": "example",
      "slug": "example"
    },
    "pull_request": {
      "base": "example",
      "id": "example",
      "repository": "example"
    },
    "scheduled_at": "example",
    "source": "example",
    "started_at": "example",
    "state": "example",
    "url": "example",
    "web_url": "example"
  }
}
```

### Retry job

Run a failed, timed-out or canceled job again. The answer is the new job.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Job (`job_id`, text, required): The job (one step of a build).

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "agent": {
      "hostname": "example",
      "id": "example",
      "name": "example",
      "web_url": "example"
    },
    "command": "example",
    "created_at": "example",
    "exit_status": 1,
    "finished_at": "example",
    "id": "example",
    "log_url": "example",
    "name": "example",
    "retried": true,
    "retried_in_job_id": "example",
    "retries_count": 1,
    "runnable_at": "example",
    "scheduled_at": "example",
    "soft_failed": true,
    "started_at": "example",
    "state": "example",
    "step_key": "example",
    "type": "example",
    "unblockable": true,
    "web_url": "example"
  }
}
```

### Unblock job

Unblock a build's block step so the steps after it run, filling in the step's fields if it has any.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Build (`build_number`, number, required): The build's number in its pipeline, such as 27. At least 1.
- Job (`job_id`, text, required): The job (one step of a build).
- Fields (`fields`, object): Values for the block step's fields, by field key, such as release-name.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "agent": {
      "hostname": "example",
      "id": "example",
      "name": "example",
      "web_url": "example"
    },
    "command": "example",
    "created_at": "example",
    "exit_status": 1,
    "finished_at": "example",
    "id": "example",
    "log_url": "example",
    "name": "example",
    "retried": true,
    "retried_in_job_id": "example",
    "retries_count": 1,
    "runnable_at": "example",
    "scheduled_at": "example",
    "soft_failed": true,
    "started_at": "example",
    "state": "example",
    "step_key": "example",
    "type": "example",
    "unblockable": true,
    "web_url": "example"
  }
}
```

### Update pipeline

Change a pipeline's name, repository, steps or settings. Only the fields filled in change.

**Inputs**

- Organization (`organization`, text, required): The Buildkite organization.
- Pipeline (`pipeline`, text, required): The pipeline.
- Name (`name`, text): The pipeline's name. Its address (slug) is made from it.
- Repository URL (`repository`, text): The Git repository to build, such as git@github.com:acme/app.git.
- Cluster (`cluster_id`, text): The cluster whose agents run the pipeline's jobs.
- Steps (YAML) (`configuration`, text): The pipeline's steps, in Buildkite's YAML, such as steps: followed by - command: "make test".
- Description (`description`, text): A short description of the pipeline.
- Default branch (`default_branch`, text): The branch new builds start on, such as main.
- Branch filter (`branch_configuration`, text): Only build pushes to branches matching this filter, such as main feature/*. Leave empty for every branch.
- Visibility (`visibility`, text): Who can see the pipeline. Leave empty for private. One of: `private`, `public`.
- Tags (`tags`, list): Tags to show on the pipeline.
- Skip queued branch builds (`skip_queued_branch_builds`, true/false): Skip builds on a branch that haven't started when a newer one is created.
- Cancel running branch builds (`cancel_running_branch_builds`, true/false): Cancel running builds on a branch when a newer one is created.

**Outputs**

- `data` (object): The response from Buildkite.

**Example output**

```json
{
  "data": {
    "allow_rebuilds": true,
    "archived_at": "example",
    "branch_configuration": "example",
    "builds_url": "example",
    "cancel_running_branch_builds": true,
    "cluster_id": "example",
    "configuration": "example",
    "created_at": "example",
    "default_branch": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "repository": "example",
    "skip_queued_branch_builds": true,
    "slug": "example",
    "tags": [
      "example"
    ],
    "url": "example",
    "visibility": "example",
    "web_url": "example"
  }
}
```
