Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/apis/api_differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ On this page, we've collected the known limitation where some API features are o
* <%= pill "BUILDS", "builds" %> [Get all environment variables set on a build](/docs/apis/graphql/graphql-cookbook#builds-get-all-environment-variables-set-on-a-build).
* <%= pill "BUILDS", "builds" %> [Increase the next build number](/docs/apis/graphql/graphql-cookbook#builds-increase-the-next-build-number).
* <%= pill "BUILDS", "builds" %> [Get build info by ID] (/docs/apis/graphql/graphql-cookbook#builds-get-build-info-by-id).
* <%= pill "BUILDS", "builds" %> [Get detailed retry info for jobs in a build](/docs/apis/graphq/graphql-cookbook#builds-get-job-retry-info-for-a-build)
* <%= pill "JOBS", "jobs" %> [Get all jobs in a given queue for a given timeframe](/docs/apis/graphql/graphql-cookbook#jobs-get-all-jobs-in-a-given-queue-for-a-given-timeframe).
* <%= pill "JOBS", "jobs" %> [Get all jobs in a particular concurrency group](/docs/apis/graphql/graphql-cookbook#jobs-get-all-jobs-in-a-particular-concurrency-group).
* <%= pill "JOBS", "jobs" %> list job events.
Expand Down
23 changes: 23 additions & 0 deletions pages/apis/graphql/graphql_cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,29 @@ query GetBuilds {
}
```

### Get job retry info for a build

Get the retry info for jobs in a given build, jobs retried [automatically](/docs/pipelines/command-step#retry-attributes) will return `nil` for `retriedBy`.

```graphql
query GetJobRetryInfo {
build(slug:"organization-slug/pipeline-slug/build-number") {
jobs(first: 10, state:FINISHED) {
edges {
node {
... on JobTypeCommand {
retriedBy{
name
}
retryType
}
}
}
}
}
}
```

### Get all environment variables set on a build

Retrieve all of a job's environment variables for a given build. This is the equivalent of what you see in the _Environment_ tab of each build.
Expand Down