jenkins-job-builder/tests/yamlparser/error_fixtures/macro-uses-global-defaults....

36 lines
946 B
YAML

# Macros do not use global defaults.
- defaults:
name: global
global_param: sample global param value
- builder:
name: builder-without-params
builders:
- shell: |
echo "builder-without-params: Fails when trying to expand: {global_param}"
# Also fails when trying to expand:
- shell: !include-raw-expand: macro-uses-global-defaults.yaml.inc
- builder:
name: builder-with-params
builders:
- shell: |
echo "builder-with-params: Should be expanded: {param}"
- shell: |
echo "builder-with-params: Fails when trying to expand: {global_param}"
- shell: !include-raw-expand: macro-uses-global-defaults.yaml.inc
- job-template:
name: sample-job-template
display-name: sample-job-template
builders:
- builder-without-params
- builder-with-params:
param: sample macro param value
- project:
name: sample-project
jobs:
- sample-job-template