diff options
Diffstat (limited to 'tests/yamlparser/fixtures')
-rw-r--r-- | tests/yamlparser/fixtures/jinja-include01.xml | 23 | ||||
-rw-r--r-- | tests/yamlparser/fixtures/jinja-include01.yaml | 15 | ||||
-rw-r--r-- | tests/yamlparser/fixtures/jinja-include01.yaml.inc | 1 | ||||
-rw-r--r-- | tests/yamlparser/fixtures/jinja-include02.xml | 23 | ||||
-rw-r--r-- | tests/yamlparser/fixtures/jinja-include02.yaml | 14 |
5 files changed, 76 insertions, 0 deletions
diff --git a/tests/yamlparser/fixtures/jinja-include01.xml b/tests/yamlparser/fixtures/jinja-include01.xml new file mode 100644 index 00000000..de5ed018 --- /dev/null +++ b/tests/yamlparser/fixtures/jinja-include01.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<project> + <actions/> + <description><!-- Managed by Jenkins Job Builder --></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>test variable +a +b +c +</command> + </hudson.tasks.Shell> + </builders> + <publishers/> + <buildWrappers/> +</project> diff --git a/tests/yamlparser/fixtures/jinja-include01.yaml b/tests/yamlparser/fixtures/jinja-include01.yaml new file mode 100644 index 00000000..c64bf778 --- /dev/null +++ b/tests/yamlparser/fixtures/jinja-include01.yaml @@ -0,0 +1,15 @@ +- 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 diff --git a/tests/yamlparser/fixtures/jinja-include01.yaml.inc b/tests/yamlparser/fixtures/jinja-include01.yaml.inc new file mode 100644 index 00000000..7fbaa1cb --- /dev/null +++ b/tests/yamlparser/fixtures/jinja-include01.yaml.inc @@ -0,0 +1 @@ +{% include 'jinja01.yaml.inc' %} diff --git a/tests/yamlparser/fixtures/jinja-include02.xml b/tests/yamlparser/fixtures/jinja-include02.xml new file mode 100644 index 00000000..de5ed018 --- /dev/null +++ b/tests/yamlparser/fixtures/jinja-include02.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<project> + <actions/> + <description><!-- Managed by Jenkins Job Builder --></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>test variable +a +b +c +</command> + </hudson.tasks.Shell> + </builders> + <publishers/> + <buildWrappers/> +</project> diff --git a/tests/yamlparser/fixtures/jinja-include02.yaml b/tests/yamlparser/fixtures/jinja-include02.yaml new file mode 100644 index 00000000..25a43d50 --- /dev/null +++ b/tests/yamlparser/fixtures/jinja-include02.yaml @@ -0,0 +1,14 @@ +- builder: + name: test-builder + builders: + - shell: !j2: "{% include 'jinja01.yaml.inc' %}" + +- job: + name: test-job + builders: + - test-builder: + var: "test variable" + test_list: + - a + - b + - c |