Penv Cloud
Start free
Docs
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

WhatThis provider
VendorTravis CI
Keytravis-env-vars
Availabilityavailable. You can connect it today.
Credential we holdtravis-token
Values read backyes
Activationimmediate

Directions

DirectionWhat it does
importWe read names and values out of the store into your environment.
exportWe write names and values from your environment into the store.

Activation

immediate. The running app sees a new value at once.

Conflict policies

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_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.

FieldLabelKindRequiredWhat it is
tokenAPI tokensecret; we mask it here and seal ityesCopy 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.

FieldLabelKindRequiredAdvancedWhat it is
apiUrlAPI URLtextyesyesKeep 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.

FieldLabelKindRequiredAdvancedWhat it is
vcsCode hostchoiceyesyesWhere the repository lives. Travis looks the name up on this host only. One of GitHub, GitLab, Bitbucket, Assembla. Starts at github.
repositoryRepositorytextyesnoOwner 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.

PermissionDirectionsBlockingWithout it
repository_settings_readevery directionyesPreview cannot list the repository's variables.
repository_settings_createexportyesExport cannot add a variable.
repository_settings_updateexportyesExport cannot change or remove a variable, unless the role holds repository_settings_create: Travis accepts either grant for both.