# Example for tickets: # https://storyboard.openstack.org/#!/story/2010588 Expand macros even if called without arguments # https://storyboard.openstack.org/#!/story/2010963 Expand jobs the same way as job templates are expanded # Demonstrate different style of variable expansion and inclusion tags for # macros with and without parameters and for jobs versus job templates. - builder: name: builder-without-params builders: - shell: | echo builder-without-params: should not be expanded: {{param}} - shell: !include-raw-verbatim: job-and-macro-expansions.yaml.no-expand.inc - builder: name: builder-with-params builders: - shell: | echo builder-with-params: should not be expanded: {{param}} - shell: | echo builder-with-params: should be expanded: {param} - shell: !include-raw-verbatim: job-and-macro-expansions.yaml.no-expand.inc - shell: !include-raw-expand: job-and-macro-expansions.yaml.expand.inc - job: name: sample-job display-name: sample-job builders: - shell: | echo sample-job: should not be expanded: {{param}} - shell: !include-raw-verbatim: job-and-macro-expansions.yaml.no-expand.inc - job-template: name: sample-job-template display-name: sample-job-template builders: - builder-without-params - builder-with-params: param: sample macro param value - shell: | echo sample-job-template: should not be expanded: {{param}} - shell: | echo sample-job-template: should be expanded: {param} - shell: !include-raw-verbatim: job-and-macro-expansions.yaml.no-expand.inc - shell: !include-raw-expand: job-and-macro-expansions.yaml.expand.inc - project: name: sample-project param: sample project param value jobs: - sample-job-template