Fix ability to disable triggers
Template of job takes enabled parameter which is string, and there
is no ability to pass bool to generation process, this patch adds
ability to properly work in case if 'False' string is passed.
Change-Id: I42fafc8c4cf27ee2298215b731128395095a391e
Related-Prod: https://mirantis.jira.com/browse/PROD-27122
diff --git a/jenkins/files/jobs/_common.xml b/jenkins/files/jobs/_common.xml
index 31084d7..8b05e64 100644
--- a/jenkins/files/jobs/_common.xml
+++ b/jenkins/files/jobs/_common.xml
@@ -24,7 +24,7 @@
<org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>
<triggers>
{%- for type, trigger in job.get('trigger', {}).iteritems() %}
- {%- if trigger.enabled|default(True) %}
+ {%- if trigger.get('enabled', True)|to_bool %}
{%- if type == 'reverse' %}
<jenkins.triggers.ReverseBuildTrigger>
<spec/>