Merge "Update git plugin test cases"
This commit is contained in:
commit
f34a8bd02e
jenkins_jobs/modules
tests/publishers/fixtures
@ -4255,9 +4255,14 @@ def git(registry, xml_parent, data):
|
|||||||
(default false)
|
(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
|
:language: yaml
|
||||||
"""
|
"""
|
||||||
mappings = [('push-merge', 'pushMerge', False),
|
mappings = [('push-merge', 'pushMerge', False),
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<configVersion>2</configVersion>
|
<configVersion>2</configVersion>
|
||||||
<pushMerge>true</pushMerge>
|
<pushMerge>true</pushMerge>
|
||||||
<pushOnlyIfSuccess>false</pushOnlyIfSuccess>
|
<pushOnlyIfSuccess>false</pushOnlyIfSuccess>
|
||||||
<forcePush>false</forcePush>
|
<forcePush>true</forcePush>
|
||||||
<tagsToPush>
|
<tagsToPush>
|
||||||
<hudson.plugins.git.GitPublisher_-TagToPush>
|
<hudson.plugins.git.GitPublisher_-TagToPush>
|
||||||
<targetRepoName>tagremotename</targetRepoName>
|
<targetRepoName>tagremotename</targetRepoName>
|
@ -2,6 +2,7 @@ publishers:
|
|||||||
- git:
|
- git:
|
||||||
push-merge: true
|
push-merge: true
|
||||||
push-only-if-success: false
|
push-only-if-success: false
|
||||||
|
force-push: true
|
||||||
tags:
|
tags:
|
||||||
- tag:
|
- tag:
|
||||||
remote: tagremotename
|
remote: tagremotename
|
11
tests/publishers/fixtures/git-minimal.xml
Normal file
11
tests/publishers/fixtures/git-minimal.xml
Normal 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>
|
2
tests/publishers/fixtures/git-minimal.yaml
Normal file
2
tests/publishers/fixtures/git-minimal.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
publishers:
|
||||||
|
- git
|
Loading…
x
Reference in New Issue
Block a user