Restart Build
travis.restart_build
ActionBusiness appsconnection required
Calls the Travis CI API with the connection's credentials.
Re-run a build that has finished or been cancelled.
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 |
|---|---|---|
build_id The build Travis was asked to restart. | number | — |
accepted True once Travis accepted the request. | boolean | — |
result The build or job resource Travis returned, as it stands now. | object | — |
{
"accepted": false,
"build_id": 0,
"result": {}
}Notes
- A restart reuses the same build number; it does not create a new build.
Related Travis CI nodes
See Restart 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.