Resources · n8n integration

TravisCI n8n integrationAutomate TravisCI with n8n.

Five operations, one resource, and every one of them is a gesture you can fire from a workflow. The TravisCI n8n integration sits entirely on the Build resource: cancel, get, get many, restart, trigger. No TravisCI trigger ships with n8n, so the workflow starts somewhere else and calls Travis when it has a reason to.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the TravisCI n8n integration actually give you?

TravisCI runs the builds. n8n is where the rest of the tooling already lives. The node bridges the two with five operations on a single resource, Build: cancel, get, get many, restart and trigger. It ships with n8n, so there is nothing to install, and one API token credential covers every workflow you write afterwards.

Read the node as three moves rather than a field list. Everything a team does with Travis from a workflow comes down to starting a build, reading builds back, or stopping and replaying one. Pick the move first, the operation follows.

Starting a build. A push picked up through the GitHub node lands in n8n, and Trigger a build fires Travis on the repository slug and the branch you name. The same move works from a Schedule Trigger for a nightly run, or from an n8n Webhook that a third-party service calls, since the workflow does not have to start in Travis at all.

Reading builds back. There is no TravisCI trigger node in n8n, so a workflow that wants to know what Travis has been doing polls for it: Schedule Trigger on whatever interval fits, then Get many builds with Return All switched on so the node walks every page of the API instead of stopping at Limit. The rows then go wherever the team actually looks, a tab in Google Sheets, a table in Postgres, or a message in Slack.

Stopping and replaying. Cancel a build and Restart a build both hang on one value, the Build ID, which is why they pair so well with a small approval flow: someone clicks, the workflow already holds the ID, the node does the rest. Worth knowing before you build: none of the five operations marks a field as required, so n8n will run the node with whatever you hand it. Filling the fields is on you, not on the validator.

And when the node runs out of room, the HTTP Request node calls any endpoint of the Travis CI API with the very same credential through predefined authentication. If you are still weighing n8n itself, the n8n review covers that separately.

Connect

How do you connect TravisCI to n8n?

  1. 01

    Generate the API token in Travis CI

    You need a Travis CI account first. Once you have one, the token lives under Account Settings, in the API Token section. If you would rather stay in a terminal, the Travis CI command line client generates one too. That token is the only secret n8n asks for, so treat it like a password and copy it somewhere safe before you leave the page.

  2. 02

    Save the credential once in n8n

    Open the Credentials menu in n8n, create a Travis CI credential and paste the value into the API Token field. A credential is stored at the n8n level, not inside a workflow, which means you set it up once and pick it from a dropdown in every workflow you write afterwards. Same story whether you run n8n Cloud or your own instance.

  3. 03

    Drop the node in and run one operation

    Add the TravisCI node to a canvas, select the credential in its list, and leave the resource on Build since that is the only one the node exposes. Get many builds is the friendliest first test: it reads rather than writes, and it tells you in one execution whether the token is accepted. Then look at the output shape before you wire the next step.

Actions

What can the TravisCI node do?

The TravisCI node exposes 5 operations across 1 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceGetGet ManyCancelRestartTrigger
Build✓✓✓✓✓

Build

5 operations
01

Cancel a build

build.cancel

What you see in n8n

Notes & use cases

Sends a cancel order for a build that is still running, from inside the workflow that decided it should stop.

Key parameters

  • Build ID: the value that uniquely identifies the build you want stopped. The node does not flag it as required, so pass it deliberately, usually from the step before with an expression such as {{ $json.field }}.
Use cases
a release window closes while a build is still going, and whoever is on duty stops it from a Slack action instead of opening Travis on a phone.
02

Get a build

build.get

What you see in n8n

Notes & use cases

Pulls one build back into the workflow so the steps after it have something concrete to read.

Key parameters

  • Build ID: the value that uniquely identifies the build you are asking about.
  • Include: a list of attributes to eager load, written the way the placeholder shows, build.commit. Ask for the attributes you actually intend to use downstream.
Use cases
a workflow that already knows an ID, from a form submission or an earlier node, and needs the build itself before it can format a message.
03

Get many builds

build.getAll

What you see in n8n

Notes & use cases

Returns a list instead of a single item, which is what you want for reporting, exports and any scheduled sweep.

Key parameters

  • Return All: on, n8n walks every page of the API and brings back all the builds; off, Limit caps how many items come back.
  • Order: asc or desc for the direction of the response.
  • Sort By: created_at, finished_at, id, number or started_at.
  • Include: attributes to eager load, such as build.commit.
Use cases
a Monday morning export of the week's builds into a spreadsheet nobody has to assemble by hand.
04

Restart a build

build.restart

What you see in n8n

Notes & use cases

Asks Travis to restart a build you already hold the identifier for, without anyone going back to the interface.

Key parameters

  • Build ID: the value that uniquely identifies the build to restart. It travels well from a previous node as {{ $json.field }}, which is how a one-click restart flow usually gets wired.
Use cases
a small internal page or a Slack shortcut posts to an n8n Webhook, the workflow reads the ID out of the payload and replays that exact build.
05

Trigger a build

build.trigger

What you see in n8n

Notes & use cases

Starts a build on the repository and branch you name, which makes this the operation most workflows end on.

Key parameters

  • Slug: same as {ownerName}/{repositoryName}, for instance n8n-io/n8n.
  • Branch: the branch requested to be built, such as master.
  • Message: the Travis CI status message attached to the request, useful for saying who or what asked for this build.
Use cases
a nightly Schedule Trigger builds the main branch while nobody is pushing, and the message records that it came from automation.
Need help

Need help automating TravisCI with n8n?

A person reads every message.

FAQ

TravisCI and n8n, the questions that come up next

01Is the TravisCI n8n integration free to use?
Yes on the n8n side. The TravisCI node ships with n8n, so there is nothing to install and no add-on to buy, and it behaves the same on n8n Cloud as on an instance you host yourself under the Community Edition and its Sustainable Use license. The credential you create is reused across every workflow, so the setup cost is paid once. What a Travis CI account itself costs is a separate question and not one this page answers, since it sits outside the node. Budget the workflow time, not the connector.
02What credentials do you need to connect TravisCI to n8n?
An API token, and that is the whole list. You need a Travis CI account, then you take the token from Account Settings, in the API Token section, or generate one with the Travis CI command line client if you prefer working in a terminal. In n8n you create the credential once from the Credentials menu, paste the token into the API Token field, and every TravisCI node you add afterwards offers that credential in its dropdown. There is no authentication selector on the node itself, so nothing else to choose.
03What are the limits of the TravisCI node in n8n?
The node covers five operations on one resource, Build: cancel, get, get many, restart and trigger. That is the catalogue. For listings, watch Return All: leave it off and Limit caps the number of builds you get back, switch it on and n8n chains the API pages until everything has arrived. For anything outside those five operations, the HTTP Request node calls any endpoint of the Travis CI API and reuses the same credential through predefined authentication, so you keep one place to manage the token.
04Can an n8n workflow react to TravisCI in real time?
Not from Travis itself. This tool has no trigger node in n8n, so a workflow about it starts with another kind of start: a Schedule Trigger firing on a fixed interval, an n8n Webhook that a third-party service calls, or the trigger of another tool you already use. The common pattern is the Schedule Trigger plus Get many builds, sorted with Sort By and Order so the newest work reads first. The other direction is immediate: any workflow can call Trigger a build the moment its own trigger fires.
05n8n or Make for automating TravisCI?
It depends on what you care about, and both will call the same API. Make is hosted by Make, with no self-hosting option, and it bills by operation, which is comfortable while volumes stay small and less so when a scheduled sweep runs all day. n8n runs on your own server or on n8n Cloud, and a workflow is identical in both places, so you can move it later. Decide on four things: where the data lives, how much control you want over the runtime, the cost model, and which visual logic your team reads faster.