Imports
Build configuration imports
Import YAML config snippets that can be shared across repositories.
This node uses the key source as a default prefix if not given a map.
See also
Types
Keys
If given a map, the following keys are supported:
source— The source to import build config from (type: string, e.g.:./import.yml@v1)mode— How to merge the imported config into the target config (defaults to deepmergeappend) (type: enum (string), known values:merge,deep_merge,deep_merge_append,deep_merge_prepend)if— Condition to determine if a build, stage, or job should be run, a config source imported, or a notification sent (type: string, e.g.:branch = master, see: Conditional Builds, Stages, and Jobs, Conditional Notifications)
Examples
import:
- source: "./import.yml@v1"
mode: merge
if: branch = master
import:
- "./import.yml@v1"
import:
source: "./import.yml@v1"
mode: merge
if: branch = master
import: "./import.yml@v1"