08678825a9
The changes between plugin version 2.30.0-2.32.0 have been implemented. Current test cases are updated, and also new test cases are added in order to verify old version XML output has not been altered. Documentation uses gerrit004.yaml as an exampple, therefore, `build-cancellation-policy` have also been implemented to show as example. Signed-off-by: Eren Atas <eatas.contractor@libertyglobal.com> Change-Id: I55fb6f8dd722d50cff369a6fba0e11c96b0c08aa
86 lines
4.2 KiB
XML
86 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<triggers class="vector">
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
|
|
<spec/>
|
|
<gerritProjects>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
|
|
<compareType>PLAIN</compareType>
|
|
<pattern>test-project</pattern>
|
|
<branches>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
|
|
<compareType>PLAIN</compareType>
|
|
<pattern>master</pattern>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
|
|
<compareType>PLAIN</compareType>
|
|
<pattern>stable</pattern>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
|
|
</branches>
|
|
<filePaths>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
|
|
<compareType>ANT</compareType>
|
|
<pattern>subdirectory/**</pattern>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
|
|
</filePaths>
|
|
<topics>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Topic>
|
|
<compareType>ANT</compareType>
|
|
<pattern>refactor-xy**</pattern>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Topic>
|
|
</topics>
|
|
<disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
|
|
</gerritProjects>
|
|
<skipVote>
|
|
<onSuccessful>true</onSuccessful>
|
|
<onFailed>true</onFailed>
|
|
<onUnstable>true</onUnstable>
|
|
<onNotBuilt>true</onNotBuilt>
|
|
<onAborted>true</onAborted>
|
|
</skipVote>
|
|
<buildCancellationPolicy>
|
|
<enabled>true</enabled>
|
|
<abortNewPatchsets>false</abortNewPatchsets>
|
|
<abortManualPatchsets>true</abortManualPatchsets>
|
|
<abortSameTopic>true</abortSameTopic>
|
|
</buildCancellationPolicy>
|
|
<silentMode>false</silentMode>
|
|
<silentStartMode>true</silentStartMode>
|
|
<escapeQuotes>false</escapeQuotes>
|
|
<dependencyJobsNames>job1, job2</dependencyJobsNames>
|
|
<commitMessageParameterMode>BASE64</commitMessageParameterMode>
|
|
<nameAndEmailParameterMode>PLAIN</nameAndEmailParameterMode>
|
|
<changeSubjectParameterMode>PLAIN</changeSubjectParameterMode>
|
|
<commentTextParameterMode>BASE64</commentTextParameterMode>
|
|
<notificationLevel>ALL</notificationLevel>
|
|
<dynamicTriggerConfiguration>true</dynamicTriggerConfiguration>
|
|
<triggerConfigURL>http://myhost/mytrigger</triggerConfigURL>
|
|
<triggerInformationAction/>
|
|
<triggerOnEvents>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
|
|
<excludeDrafts>true</excludeDrafts>
|
|
<excludeTrivialRebase>true</excludeTrivialRebase>
|
|
<excludeNoCodeChange>true</excludeNoCodeChange>
|
|
<excludePrivateState>true</excludePrivateState>
|
|
<excludeWipState>true</excludeWipState>
|
|
<commitMessageContainsRegEx>regex</commitMessageContainsRegEx>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedEvent>
|
|
<verdictCategory>APRV</verdictCategory>
|
|
<commentAddedTriggerApprovalValue>1</commentAddedTriggerApprovalValue>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedEvent>
|
|
</triggerOnEvents>
|
|
<buildStartMessage/>
|
|
<buildFailureMessage/>
|
|
<buildSuccessfulMessage/>
|
|
<buildUnstableMessage/>
|
|
<buildNotBuiltMessage/>
|
|
<buildUnsuccessfulFilepath>path/to/filename</buildUnsuccessfulFilepath>
|
|
<customUrl/>
|
|
<serverName>my-server</serverName>
|
|
<buildAbortedMessage/>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
|
|
</triggers>
|
|
</project>
|