Get Job
travis.get_job
ActionBusiness appsconnection required
Calls the Travis CI API with the connection's credentials.
Read one job out of a build's 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 |
|---|---|---|---|---|---|
job_id The Travis job id, which a build emits as 'jobs[].id'. | number | Yes | — | ≥ 1 | 351744776 |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"job_id": 351744776
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The job id. | number | — |
number The job number, e.g. '2991.3'. | string | — |
state The job's current state. | string | — |
queue The worker queue the job was scheduled on. | string | — |
started_at When the job started, as an ISO-8601 timestamp. | string | — |
finished_at When the job finished, as an ISO-8601 timestamp. | string | — |
allow_failure True when a failure here does not fail the build. | boolean | — |
build The build this job belongs to. | object | — |
commit The commit the job ran against. | object | — |
repository The repository the job belongs to. | object | — |
{
"allow_failure": false,
"build": {},
"commit": {},
"finished_at": "",
"id": 0,
"number": "",
"queue": "",
"repository": {},
"started_at": "",
"state": ""
}Related Travis CI nodes
See Get Job 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.