Buildkite
App · 25 actions
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.
Actions
| Action | What it does |
|---|---|
| Archive pipeline | Archive a pipeline: it becomes read-only and hidden, and its builds are kept. |
| Cancel build | Cancel a build that is scheduled, running or blocked. |
| Create annotation | Add a note to the top of a build's page, in Markdown or HTML. |
| Create build | Start a new build of a pipeline on a branch and commit. |
| Create pipeline | Create a YAML pipeline that builds a repository on a cluster's agents. |
| Delete annotation | Remove an annotation from a build. |
| Delete pipeline | Delete a pipeline with all its builds. |
| Get access token details | See the connected API access token's scopes, description, expiry and owner. |
| Get agent | Get an agent's state, host, queue, version and current job. |
| Get artifact download link | Get a short-lived link to download an artifact. |
| Get build | Get a build by its number, with its state, commit, creator and jobs. |
| Get job log | Get the log output of one job of a build. |
| Get pipeline | Get a pipeline's settings, steps and links. |
| List agents | List an organization's connected agents, optionally by name, hostname or version. |
| List annotations | List the annotations shown on a build. |
| List artifacts | List the files a build's jobs uploaded, optionally by state or path. |
| List builds | List builds newest first, for one pipeline or the whole organization, by branch, state, commit or time. |
| List clusters | List an organization's clusters, the groups of agents and queues that run jobs. |
| List jobs | List the jobs (steps) of a build with their state and exit status. |
| List organizations | List the Buildkite organizations the token can reach. |
| List pipelines | List an organization's pipelines, optionally by name or repository. |
| Rebuild build | Start a new build with the same commit, branch, message and environment as an earlier one. |
| Retry job | Run a failed, timed-out or canceled job again. |
| Unblock job | Unblock a build's block step so the steps after it run, filling in the step's fields if it has any. |
| Update pipeline | Change a pipeline's name, repository, steps or settings. |
Archive pipeline
Archive a pipeline: it becomes read-only and hidden, and its builds are kept.
Inputs
- Organization
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Body
bodytextRequired - The annotation, in Markdown or HTML.
- Style
styletext - How the annotation looks. Leave empty for plain.One of:
info,success,warning,error. - Context
contexttext - A name for the annotation. A build has one annotation per name, so the same name replaces or adds to it.
- Priority
prioritynumber - Where it shows, from 1 (last) to 10 (first). Leave empty for 3.From 1 to 10.
- Append
appendtrue/false - Add the body to the end of the annotation with the same context instead of replacing it.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Branch
branchtextRequired - The branch to build, such as main.
- Commit
committext - The commit SHA, tag or ref to build. Leave empty for the branch's latest commit (HEAD).
- Message
messagetext - A message shown on the build.
- Environment variables
envobject - Environment variables for the build, by name.
- Meta-data
meta_dataobject - Meta-data for the build's steps to read, by key.
- Author name
author_nametext - The name to show as the build's author. Leave empty for you.
- Author email
author_emailtext - The email to show as the build's author.
- Clean checkout
clean_checkouttrue/false - Make the agent delete its old copy of the repository and check it out afresh.
- Ignore branch filter
ignore_pipeline_branch_filterstrue/false - Build even if the pipeline's branch filter would skip this branch.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Name
nametextRequired - The pipeline's name. Its address (slug) is made from it.
- Repository URL
repositorytextRequired - The Git repository to build, such as git@github.com:acme/app.git.
- Cluster
cluster_idtextRequired - The cluster whose agents run the pipeline's jobs.
- Steps (YAML)
configurationtextRequired - The pipeline's steps, in Buildkite's YAML, such as steps: followed by - command: "make test".
- Description
descriptiontext - A short description of the pipeline.
- Default branch
default_branchtext - The branch new builds start on, such as main.
- Branch filter
branch_configurationtext - Only build pushes to branches matching this filter, such as main feature/*. Leave empty for every branch.
- Visibility
visibilitytext - Who can see the pipeline. Leave empty for private.One of:
private,public. - Tags
tagslist - Tags to show on the pipeline.
- Skip queued branch builds
skip_queued_branch_buildstrue/false - Skip builds on a branch that haven't started when a newer one is created.
- Cancel running branch builds
cancel_running_branch_buildstrue/false - Cancel running builds on a branch when a newer one is created.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Annotation ID
annotation_idtextRequired - The annotation's ID.
Outputs
dataobject- The response from Buildkite.
Example output
{
"data": {}
}Delete pipeline
Delete a pipeline with all its builds. This can't be undone.
Inputs
- Organization
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
Outputs
dataobject- The response from Buildkite.
Example output
{
"data": {}
}Get access token details
See the connected API access token's scopes, description, expiry and owner.
Inputs
None.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Agent
agent_idtextRequired - The agent.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Job ID
job_idtextRequired - The ID of the job that uploaded the artifact (its job_id).
- Artifact ID
artifact_idtextRequired - The artifact's ID.
Outputs
dataobject- The response from Buildkite.
Example output
{
"data": {
"url": "example"
}
}Get build
Get a build by its number, with its state, commit, creator and jobs.
Inputs
- Organization
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Job
job_idtextRequired - The job (one step of a build).
Outputs
dataobject- The response from Buildkite.
Example output
{
"data": {
"content": "example",
"size": 1,
"url": "example"
}
}Get pipeline
Get a pipeline's settings, steps and links.
Inputs
- Organization
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Name
nametext - Only the agent with this name.
- Hostname
hostnametext - Only agents on this hostname.
- Version
versiontext - Only agents of this exact version.
- Page
pagenumber - Which page of agents to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many agents to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Page
pagenumber - Which page of annotations to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many annotations to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- State
statetext - Only artifacts in this state.One of:
new,error,finished(Finished (passed, failed, blocked or canceled)),deleted,expired. - Path
pathtext - Only artifacts at this path. A * matches any characters, such as logs/*.
- Page
pagenumber - Which page of artifacts to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many artifacts to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetext - The pipeline.
- Branch
branchtext - Only builds on this branch. A * matches any characters, such as *dev*.
- States
statelist - 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
committext - Only builds of this commit (its full SHA).
- Created from
created_fromdate and time - Only builds created at or after this time.
- Created before
created_todate and time - Only builds created before this time.
- Finished from
finished_fromdate and time - Only builds that finished at or after this time.
- Include jobs
include_jobstrue/false - Include each build's jobs. Leave off for a quicker answer.
- Page
pagenumber - Which page of builds to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many builds to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Page
pagenumber - Which page of clusters to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many clusters to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Page
pagenumber - Which page of jobs to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many jobs to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
pagenumber - Which page of organizations to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many organizations to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Name contains
nametext - Only pipelines whose name contains this text.
- Repository contains
repositorytext - Only pipelines whose repository URL contains this text.
- Page
pagenumber - Which page of pipelines to read, starting at 1.At least 1.
- Per page
per_pagenumber - How many pipelines to return on a page, up to 100. Buildkite's default is 30.From 1 to 100.
Outputs
datalist- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Job
job_idtextRequired - The job (one step of a build).
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Build
build_numbernumberRequired - The build's number in its pipeline, such as 27.At least 1.
- Job
job_idtextRequired - The job (one step of a build).
- Fields
fieldsobject - Values for the block step's fields, by field key, such as release-name.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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
organizationtextRequired - The Buildkite organization.
- Pipeline
pipelinetextRequired - The pipeline.
- Name
nametext - The pipeline's name. Its address (slug) is made from it.
- Repository URL
repositorytext - The Git repository to build, such as git@github.com:acme/app.git.
- Cluster
cluster_idtext - The cluster whose agents run the pipeline's jobs.
- Steps (YAML)
configurationtext - The pipeline's steps, in Buildkite's YAML, such as steps: followed by - command: "make test".
- Description
descriptiontext - A short description of the pipeline.
- Default branch
default_branchtext - The branch new builds start on, such as main.
- Branch filter
branch_configurationtext - Only build pushes to branches matching this filter, such as main feature/*. Leave empty for every branch.
- Visibility
visibilitytext - Who can see the pipeline. Leave empty for private.One of:
private,public. - Tags
tagslist - Tags to show on the pipeline.
- Skip queued branch builds
skip_queued_branch_buildstrue/false - Skip builds on a branch that haven't started when a newer one is created.
- Cancel running branch builds
cancel_running_branch_buildstrue/false - Cancel running builds on a branch when a newer one is created.
Outputs
dataobject- The response from Buildkite.
Example output
{
"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"
}
}