Debian Codegraph @

tests/yamlparser/job_fixtures/jinja-string03.yaml

raw symbols SCIP
1 # Make sure Jinja subsittuions work from within "defaults"
2 - defaults:
3 name: test-defaults
4 test_var:
5 !j2: "{% for x in [1, 2, 3] %}{{ x }}{% endfor %}"
6
7 - project:
8 name: test-proj
9 jobs:
10 - test-jobs-{argument}:
11 argument:
12 - 1
13
14 # This type of variable propagation only works in job templates.
15 - job-template:
16 name: test-jobs-{argument}
17 defaults: test-defaults
18 builders:
19 - shell: "{test_var}"