b95f194612
This template included using !include-jinja2: """ {{ my_var }} """ is rendered the same as an existing template that looks like this: """ {my_var} """ This also allows the use of Jinja2's richer syntax: """ {% for test_environment in configuration.get("envs", ["py35"]) %} tox -e {{ test_environment }} {% endfor %} """ Story: 2001135 Change-Id: Ia3ee21822d6e9237f5ea46796bc8810ecac61e2c
16 lines
292 B
YAML
16 lines
292 B
YAML
- builder:
|
|
name: test-builder
|
|
builders:
|
|
- shell:
|
|
!include-jinja2: jinja01.yaml.inc
|
|
|
|
- job:
|
|
name: test-job
|
|
builders:
|
|
- test-builder:
|
|
var: "test variable"
|
|
test_list:
|
|
- a
|
|
- b
|
|
- c
|