Get Build
travis.get_build
ActionBusiness appsconnection required
Calls the Travis CI API with the connection's credentials.
Read one build, with its state, timings and job matrix.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Travis CI
- Secret shape
- the API token, or {"api_token": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
build_id The Travis build id, which travis.list_builds emits as 'builds[].id'. | number | Yes | — | ≥ 1 | 351744775 |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"build_id": 351744775
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The build id, which the cancel and restart nodes take. | number | — |
number The build number as shown in Travis, e.g. '2991'. | string | — |
state The build's current state, e.g. 'started' or 'passed'. | string | — |
previous_state The state of the previous build on this branch. | string | — |
event_type What triggered the build: push, pull_request, api or cron. | string | — |
duration Wall-clock time the build took, in seconds. | number | — |
started_at When the build started, as an ISO-8601 timestamp. | string | — |
finished_at When the build finished, as an ISO-8601 timestamp. | string | — |
branch The branch resource the build ran on. | object | — |
commit The commit resource the build ran against. | object | — |
jobs The jobs in the build's matrix, each with its own id. | array | — |
repository The repository the build belongs to. | object | — |
{
"branch": {},
"commit": {},
"duration": 0,
"event_type": "",
"finished_at": "",
"id": 0,
"jobs": [],
"number": "",
"previous_state": "",
"repository": {},
"started_at": "",
"state": ""
}Related Travis CI nodes
See Get Build run in a workflow.
In a technical demo we add the Travis CI connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.