Merge "Add support git publisher rebase before push"

This commit is contained in:
Zuul 2022-02-21 15:54:32 +00:00 committed by Gerrit Code Review
commit 7b296fd217
3 changed files with 5 additions and 0 deletions

View File

@ -5323,6 +5323,8 @@ def git(registry, xml_parent, data):
:branch: * **remote** (`str`) remote repo name to push to
(default 'origin')
* **name** (`str`) name of remote branch to push to
* **rebase** (`bool`) whether or not to rebase before push
(default false)
:arg list notes: notes to push at the completion of the build
@ -5362,6 +5364,7 @@ def git(registry, xml_parent, data):
branch_mappings = [
("remote", "targetRepoName", "origin"),
("name", "branchName", None),
("rebase", "rebaseBeforePush", False),
]
note_mappings = [

View File

@ -19,6 +19,7 @@
<hudson.plugins.git.GitPublisher_-BranchToPush>
<targetRepoName>branchremotename</targetRepoName>
<branchName>some/branch</branchName>
<rebaseBeforePush>true</rebaseBeforePush>
</hudson.plugins.git.GitPublisher_-BranchToPush>
</branchesToPush>
<notesToPush>

View File

@ -14,6 +14,7 @@ publishers:
- branch:
remote: branchremotename
name: "some/branch"
rebase: true
notes:
- note:
remote: remotename