You are viewing version 2.22 of the documentation, which is no longer maintained. For up-to-date documentation, see the latest version.

Connecting to Travis

Overview

Before you can make use of Jenkins in Spinnaker, you’ll need to configure access to your Jenkins masters.

Configuring Travis in your Spinnaker instance with Halyard is pretty easy, but there are a few “gotchas” to watch out for.

Add Travis to Spinnaker

First, configure your Travis master:

hal config ci travis master add Travis --address https://api.travis-ci.org --base-url https://travis-ci.org --github-token

(If you’re using a private Travis account, change the addresses appropriately)

For reference, you can look at the Spinnaker docs

Enable Travis support

Next, enable Travis with Halyard:

hal config ci travis enable

Enable Travis Stages

If you want to be able to run Travis jobs as a stage in your pipeline, you’ll need to enable the stage as well:

hal config features edit --travis true

Finally…

Now you should be able to hal deploy apply and when your services have restarted, you should be able to trigger pipelines off Travis builds, and see a Travis stage option in your pipelines.


Last modified October 12, 2020: add missing syntax (#254) (4cc9aea)