Update git plugin test cases

Change-Id: I235e3c88a31ba618c8c4ecd075251954528a9f3a
This commit is contained in:
Dong Ma 2017-06-23 22:06:07 +08:00
parent de631d49d3
commit 209b51c4f0
5 changed files with 22 additions and 3 deletions

View File

@ -4255,9 +4255,14 @@ def git(registry, xml_parent, data):
(default false)
Example:
Minimal Example:
.. literalinclude:: /../../tests/publishers/fixtures/git001.yaml
.. literalinclude:: /../../tests/publishers/fixtures/git-minimal.yaml
:language: yaml
Full Example:
.. literalinclude:: /../../tests/publishers/fixtures/git-full.yaml
:language: yaml
"""
mappings = [('push-merge', 'pushMerge', False),

View File

@ -5,7 +5,7 @@
<configVersion>2</configVersion>
<pushMerge>true</pushMerge>
<pushOnlyIfSuccess>false</pushOnlyIfSuccess>
<forcePush>false</forcePush>
<forcePush>true</forcePush>
<tagsToPush>
<hudson.plugins.git.GitPublisher_-TagToPush>
<targetRepoName>tagremotename</targetRepoName>

View File

@ -2,6 +2,7 @@ publishers:
- git:
push-merge: true
push-only-if-success: false
force-push: true
tags:
- tag:
remote: tagremotename

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<hudson.plugins.git.GitPublisher>
<configVersion>2</configVersion>
<pushMerge>false</pushMerge>
<pushOnlyIfSuccess>true</pushOnlyIfSuccess>
<forcePush>false</forcePush>
</hudson.plugins.git.GitPublisher>
</publishers>
</project>

View File

@ -0,0 +1,2 @@
publishers:
- git