c4e2f03776
The properties of 'project' objects are deepcopied in YamlParser._expandYamlForTemplateJob(), including any Jinja2YamlLoader objects produced by !j2-yaml tag. Because of the missing __deepcopy__() definition in Jinja2YamlLoader, the parent class' implementation was used, causing the deepcopied object be of Jinja2Loader type. Consequently the rendered value was always a string, not an instance of LateYamlLoader as it supposed to be. This change fixes the issue in Jinja2YamlLoader and potentially in LateYamlLoader, however the latter is currently not deepcopied anywhere so no test could be written to cover it. Change-Id: I24fda368a4af0e9aac7b78c478ac7b4eddf27b9b
39 lines
1.3 KiB
XML
39 lines
1.3 KiB
XML
<?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>echo "['repo-1', 'repo-2', 'repo-a1', 'repo-a2']"</command>
|
|
</hudson.tasks.Shell>
|
|
</builders>
|
|
<publishers/>
|
|
<buildWrappers/>
|
|
</project>
|
|
<?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>echo "['repo-1', 'repo-2', 'repo-b1', 'repo-b2']"</command>
|
|
</hudson.tasks.Shell>
|
|
</builders>
|
|
<publishers/>
|
|
<buildWrappers/>
|
|
</project>
|