Reference
Travis CI environment variables
Repository variables set for all branches on Travis CI. We write them private. Import reads public values in plain or single-quoted text and refuses a private one, which Travis never returns.
Repository variables set for all branches on Travis CI. We write them private. Import reads public values in plain or single-quoted text and refuses a private one, which Travis never returns.
Connection
| What | This provider |
|---|---|
| Vendor | Travis CI |
| Key | travis-env-vars |
| Availability | available. You can connect it today. |
| Credential we hold | travis-token |
| Values read back | yes |
| Activation | immediate |
Directions
| Direction | What it does |
|---|---|
import | We read names and values out of the store into your environment. |
export | We write names and values from your environment into the store. |
Activation
immediate. The running app sees a new value at once.
Conflict policies
| Direction | Policies you can pick |
|---|---|
import | skip_existing, new_version, fail |
export | create_only, overwrite, overwrite_and_prune |
How syncs work says what each one does.
Connect
Paste a credential from the vendor. We seal it and never show it again.
| Field | Label | Kind | Required | What it is |
|---|---|---|---|---|
token | API token | secret; we mask it here and seal it | yes | Copy it under Settings, API authentication on your Travis CI profile. It acts as you, so you need a role that can change the repository's settings. |
Connection fields
You set these when you connect. Every mapping on the connection shares them.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
apiUrl | API URL | text | yes | yes | Keep the default for travis-ci.com. For Travis CI Enterprise, use your address followed by /api. It must be reachable from the internet. Starts at https://api.travis-ci.com. |
Mapping fields
You answer these once per environment you map.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
vcs | Code host | choice | yes | yes | Where the repository lives. Travis looks the name up on this host only. One of GitHub, GitLab, Bitbucket, Assembla. Starts at github. |
repository | Repository | text | yes | no | Owner and name, as the repository URL shows them, with every subgroup on GitLab. We manage the variables set for all branches and leave branch variables alone. |
Required permissions
We probe for these when we verify the connection.
| Permission | Directions | Blocking | Without it |
|---|---|---|---|
repository_settings_read | every direction | yes | Preview cannot list the repository's variables. |
repository_settings_create | export | yes | Export cannot add a variable. |
repository_settings_update | export | yes | Export cannot change or remove a variable, unless the role holds repository_settings_create: Travis accepts either grant for both. |