Add 'readable-message' parameter to gerrit trigger
Adds ability to keep base64 encoded gerrit trigger variables (such as commit message) in human readable format. Change-Id: Ie96d633ab9dc96dacf859409fd649bd981f9eb7c
This commit is contained in:
parent
3ed77d9774
commit
91aab94c1b
@ -357,6 +357,10 @@ def gerrit(parser, xml_parent, data):
|
||||
parameters (default true)
|
||||
:arg bool no-name-and-email: Do not pass compound 'name and email'
|
||||
parameters (default false)
|
||||
:arg bool readable-message: If parameters regarding multiline text,
|
||||
e.g. commit message, should be as human readable or not. If false,
|
||||
those parameters are Base64 encoded to keep environment variables
|
||||
clean. (default false)
|
||||
:arg bool dynamic-trigger-enabled: Enable/disable the dynamic trigger
|
||||
(default false)
|
||||
:arg str dynamic-trigger-url: if you specify this option, the Gerrit
|
||||
@ -460,6 +464,8 @@ def gerrit(parser, xml_parent, data):
|
||||
data.get('escape-quotes', True)).lower()
|
||||
XML.SubElement(gtrig, 'noNameAndEmailParameters').text = str(
|
||||
data.get('no-name-and-email', False)).lower()
|
||||
XML.SubElement(gtrig, 'readableMessage').text = str(
|
||||
data.get('readable-message', False)).lower()
|
||||
XML.SubElement(gtrig, 'dynamicTriggerConfiguration').text = str(
|
||||
data.get('dynamic-trigger-enabled', False))
|
||||
XML.SubElement(gtrig, 'triggerConfigURL').text = str(
|
||||
|
@ -30,6 +30,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>false</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>True</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
||||
<allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
|
||||
|
@ -34,6 +34,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>false</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>True</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
||||
<allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
|
||||
|
@ -50,6 +50,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>false</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>True</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
||||
<allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
|
||||
|
@ -40,6 +40,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>false</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>True</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
||||
<allowTriggeringUnreviewedPatches>true</allowTriggeringUnreviewedPatches>
|
||||
|
@ -30,6 +30,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>true</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL/>
|
||||
<allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
|
||||
|
@ -30,6 +30,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>false</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>true</readableMessage>
|
||||
<dynamicTriggerConfiguration>True</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
||||
<allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
|
||||
|
@ -19,5 +19,6 @@ triggers:
|
||||
silent: false
|
||||
escape-quotes: false
|
||||
no-name-and-email: false
|
||||
readable-message: true
|
||||
dynamic-trigger-enabled: true
|
||||
dynamic-trigger-url: http://myhost/mytrigger
|
||||
dynamic-trigger-url: http://myhost/mytrigger
|
||||
|
@ -40,6 +40,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>false</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>True</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
||||
<allowTriggeringUnreviewedPatches>true</allowTriggeringUnreviewedPatches>
|
||||
|
@ -73,6 +73,7 @@
|
||||
<silentMode>false</silentMode>
|
||||
<escapeQuotes>true</escapeQuotes>
|
||||
<noNameAndEmailParameters>false</noNameAndEmailParameters>
|
||||
<readableMessage>false</readableMessage>
|
||||
<dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
|
||||
<triggerConfigURL/>
|
||||
<allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
|
||||
|
Loading…
Reference in New Issue
Block a user