summaryrefslogtreecommitdiffstats
path: root/tests/yamlparser/fixtures/jinja02.xml
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2017-07-31 17:46:57 -0400
committerDaniel Watkins <daniel.watkins@canonical.com>2017-08-09 10:11:42 -0400
commitb95f194612029bfdb191da044e9a2b7e03ef3552 (patch)
treea7614d2cbdcf8d90a4cd659f44c0d8f40b34c4bb /tests/yamlparser/fixtures/jinja02.xml
parent2c60aff80675c50baf1fe132b92cfd4232be0cfa (diff)
downloadpython-jenkins-job-builder-b95f194612029bfdb191da044e9a2b7e03ef3552.tar.gz
python-jenkins-job-builder-b95f194612029bfdb191da044e9a2b7e03ef3552.tar.xz
python-jenkins-job-builder-b95f194612029bfdb191da044e9a2b7e03ef3552.zip
Add !include-jinja2 for rendering templates with Jinja2
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
Diffstat (limited to 'tests/yamlparser/fixtures/jinja02.xml')
-rw-r--r--tests/yamlparser/fixtures/jinja02.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/yamlparser/fixtures/jinja02.xml b/tests/yamlparser/fixtures/jinja02.xml
new file mode 100644
index 00000000..d0e1c909
--- /dev/null
+++ b/tests/yamlparser/fixtures/jinja02.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <actions/>
+ <description>&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
+ <keepDependencies>false</keepDependencies>
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <concurrentBuild>false</concurrentBuild>
+ <canRoam>true</canRoam>
+ <properties/>
+ <scm class="hudson.scm.NullSCM"/>
+ <builders>
+ <hudson.tasks.Shell>
+ <command>1</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers/>
+ <buildWrappers/>
+</project>