Cancel Job
travis.cancel_job
ActionBusiness appsconnection required
Calls the Travis CI API with the connection's credentials.
Stop one running job without touching the rest of the 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 |
|---|---|---|
job_id The job Travis was asked to cancel. | number | — |
accepted True once Travis accepted the request. | boolean | — |
result The build or job resource Travis returned, as it stands now. | object | — |
{
"accepted": false,
"job_id": 0,
"result": {}
}Related Travis CI nodes
See Cancel 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.