Define environment variables directly within workflow definitions or as plain-text values. Variables set at the workflow level propagate to all steps in all jobs.
-
Use the
envkeyword to define variables. -
Variables in the
envmap cannot reference other variables in the same map. -
Variable specificity determines precedence. A variable defined in a step overrides one with the same name at the workflow level.
For example, if SERVER: production is defined at the workflow level and SERVER: development is defined in a step, the step uses development during execution.
Additional references: