jenkins-job-builder/tests/yamlparser/fixtures/jinja-include01.yaml
Daniel Watkins aa74f8d67c Add support for {% include %} in Jinja2 templates
This allows the use of the {% include %} tag[0] within Jinja2 templates,
with the same search path used for looking up other templates (i.e. the
one which LocalLoader is instantiated with).

[0] http://jinja.pocoo.org/docs/2.9/templates/#include

Change-Id: I0403c385ee317e1460a80a9bf717aa4712f37e2f
2018-02-23 12:04:45 -05:00

16 lines
300 B
YAML

- builder:
name: test-builder
builders:
- shell:
!include-jinja2: jinja-include01.yaml.inc
- job:
name: test-job
builders:
- test-builder:
var: "test variable"
test_list:
- a
- b
- c