diff options
author | Adam Romanek <romanek.adam@gmail.com> | 2020-05-27 16:15:39 +0200 |
---|---|---|
committer | Adam Romanek <romanek.adam@gmail.com> | 2020-06-01 15:39:18 +0200 |
commit | b04ca3a82c27b93c904a1ffeef19d906417e6f24 (patch) | |
tree | 7f8088bc2ead0ac4317ac6162b35b5061e776ff2 /tests/yamlparser/fixtures | |
parent | 1ffef886f872dc74a5d6bb2dcc49e302f85018bb (diff) | |
download | python-jenkins-job-builder-b04ca3a82c27b93c904a1ffeef19d906417e6f24.tar.gz python-jenkins-job-builder-b04ca3a82c27b93c904a1ffeef19d906417e6f24.tar.xz python-jenkins-job-builder-b04ca3a82c27b93c904a1ffeef19d906417e6f24.zip |
Gerrit Trigger: update support to the latest plugin version
The changes include:
- deprecated the following options and made support for them dependent
on the Gerrit Trigger plugin version:
- 'no-name-and-email'
- 'readable-message'
- 'trigger-for-unreviewed-patches'
- added a set of new options:
- 'name-and-email-parameter-mode' (replaced 'no-name-and-email')
- 'commit-message-parameter-mode' (replaced 'readable-message')
- 'change-subject-parameter-mode'
- 'comment-text-parameter-mode'
all these options can have one of the following values:
- NONE
- PLAIN
- BASE64
the default value for the first two options is taken from the
respective options they replaced, if they exist in the input YAML
file, so the overall change should be backward compatible
- fixed the value generated for <dynamicTriggerConfiguration> element
it should be "true"/"false" instead of "True"/"False"
- added an empty <dynamicGerritProjects> element when dynamic trigger
functionality is disabled to match what the plugin does
With the above changes the markup generated by JJB is fully aligned with
Gerrit Trigger plugin v2.30.x. Tested on Gerrit Trigger plugin v2.30.0.
Task: 39871
Story: 2007722
Change-Id: I25800874f51a93a351926a9a1be255cce80b88bd
Diffstat (limited to 'tests/yamlparser/fixtures')
-rw-r--r-- | tests/yamlparser/fixtures/complete001.xml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/yamlparser/fixtures/complete001.xml b/tests/yamlparser/fixtures/complete001.xml index 546fd5e6..ef15abeb 100644 --- a/tests/yamlparser/fixtures/complete001.xml +++ b/tests/yamlparser/fixtures/complete001.xml @@ -69,14 +69,16 @@ <silentMode>false</silentMode> <silentStartMode>false</silentStartMode> <escapeQuotes>true</escapeQuotes> - <noNameAndEmailParameters>false</noNameAndEmailParameters> - <readableMessage>false</readableMessage> <dependencyJobsNames/> + <commitMessageParameterMode>BASE64</commitMessageParameterMode> + <nameAndEmailParameterMode>PLAIN</nameAndEmailParameterMode> + <changeSubjectParameterMode>PLAIN</changeSubjectParameterMode> + <commentTextParameterMode>BASE64</commentTextParameterMode> <notificationLevel/> - <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration> + <dynamicTriggerConfiguration>false</dynamicTriggerConfiguration> <triggerConfigURL/> + <dynamicGerritProjects class="empty-list"/> <triggerInformationAction/> - <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches> <triggerOnEvents> <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent/> </triggerOnEvents> |