Env
Environment variables to set up
The key env
defines env vars that will be defined in the build environment.
Env vars can be specified as global or job vars. Global vars will be defined on every job in the build's job matrix. Job vars will expand the build matrix, i.e. create one additional job per entry.
Env vars can be given either as strings or maps. If given as a string they can contain multiple key/value pairs.
This node uses the key jobs
as a default prefix if not given a map.
See also
Types
Keys
If given a map, the following keys are supported:
global
— Global environment variables to be defined on all jobs (type: sequence of map, sequence of secure, sequence of string, map, secure, or string) detailsjobs
— Environment variables that expand the build matrix (creating one job per entry) (type: sequence of map, sequence of secure, sequence of string, map, secure, or string, alias:matrix
) details
Examples
env:
global:
- FOO: foo
jobs:
- FOO: foo
env:
- FOO: foo
env:
- secure: encrypted string
env:
- FOO=foo
env:
FOO: foo
env:
secure: encrypted string
env: FOO=foo