Add support of override votes.
* Added support of gerrit override votes for jobs.
Change-Id: Id729e1b66fd93282e2ce4f32113798389c53afbe
diff --git a/jenkins/files/jobs/_common.xml b/jenkins/files/jobs/_common.xml
index 47dcc87..df00c23 100644
--- a/jenkins/files/jobs/_common.xml
+++ b/jenkins/files/jobs/_common.xml
@@ -84,6 +84,9 @@
<commitMessageParameterMode>BASE64</commitMessageParameterMode>
<changeSubjectParameterMode>PLAIN</changeSubjectParameterMode>
<commentTextParameterMode>BASE64</commentTextParameterMode>
+ {%- for override_key, override_value in trigger.get('override-votes', {}).iteritems() %}
+ <{{ override_key }}>{{ override_value }}</{{ override_key }}>
+ {%- endfor %}
{%- set message = trigger.get('message', {}).build_start|default("") %}
{%- if message != "" %}
<buildStartMessage>{{ message }}</buildStartMessage>