wrappers: fix XML node name for scrip-env's only-run-on-parent
Jenkins configuration wants it as runOnlyOnParent (vs onlyRunOnParent). https://storyboard.openstack.org/#!/story/2001547 Change-Id: Icbf9b44cabe6f111941659ec5b084d44c0fc8a59
This commit is contained in:
parent
e55b3d408c
commit
d66cd3e6da
@ -1054,7 +1054,7 @@ def env_script(registry, xml_parent, data):
|
||||
mapping = [
|
||||
('script-content', 'script', ''),
|
||||
('script-type', 'scriptType', 'unix-script', valid_script_types),
|
||||
('only-run-on-parent', 'onlyRunOnParent', False)]
|
||||
('only-run-on-parent', 'runOnlyOnParent', False)]
|
||||
convert_mapping_to_xml(el, data, mapping, fail_required=True)
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<com.lookout.jenkins.EnvironmentScript>
|
||||
<script>echo foo=bar</script>
|
||||
<scriptType>unixScript</scriptType>
|
||||
<onlyRunOnParent>true</onlyRunOnParent>
|
||||
<runOnlyOnParent>true</runOnlyOnParent>
|
||||
</com.lookout.jenkins.EnvironmentScript>
|
||||
</buildWrappers>
|
||||
</project>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<com.lookout.jenkins.EnvironmentScript>
|
||||
<script>echo foo=bar</script>
|
||||
<scriptType>batchScript</scriptType>
|
||||
<onlyRunOnParent>true</onlyRunOnParent>
|
||||
<runOnlyOnParent>true</runOnlyOnParent>
|
||||
</com.lookout.jenkins.EnvironmentScript>
|
||||
</buildWrappers>
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user