Fix gerrit-code-review plugin name
The GerritSCMSource type for the multibranch pipeline does not belong to the 'gerrit' plugin but rather to the 'gerrit-code-review' plugin. Change-Id: I5edd81a3506847c3e5910ad66d4498a2b8c899e9
This commit is contained in:
parent
497198a252
commit
8a27ad1ed1
@ -583,7 +583,10 @@ def gerrit_scm(xml_parent, data):
|
||||
source = XML.SubElement(
|
||||
xml_parent,
|
||||
"source",
|
||||
{"class": "jenkins.plugins.gerrit.GerritSCMSource", "plugin": "gerrit"},
|
||||
{
|
||||
"class": "jenkins.plugins.gerrit.GerritSCMSource",
|
||||
"plugin": "gerrit-code-review",
|
||||
},
|
||||
)
|
||||
source_mapping = [
|
||||
("", "id", "-".join(["gr", data.get("url", "")])),
|
||||
|
@ -31,7 +31,7 @@
|
||||
<sources class="jenkins.branch.MultiBranchProject$BranchSourceList" plugin="branch-api">
|
||||
<data>
|
||||
<jenkins.branch.BranchSource>
|
||||
<source class="jenkins.plugins.gerrit.GerritSCMSource" plugin="gerrit">
|
||||
<source class="jenkins.plugins.gerrit.GerritSCMSource" plugin="gerrit-code-review">
|
||||
<id>gr-https://review.gerrithub.io/johndoe/foo</id>
|
||||
<remote>https://review.gerrithub.io/johndoe/foo</remote>
|
||||
<credentialsId>secret</credentialsId>
|
||||
|
@ -31,7 +31,7 @@
|
||||
<sources class="jenkins.branch.MultiBranchProject$BranchSourceList" plugin="branch-api">
|
||||
<data>
|
||||
<jenkins.branch.BranchSource>
|
||||
<source class="jenkins.plugins.gerrit.GerritSCMSource" plugin="gerrit">
|
||||
<source class="jenkins.plugins.gerrit.GerritSCMSource" plugin="gerrit-code-review">
|
||||
<id>gr-https://review.gerrithub.io/johndoe/foo</id>
|
||||
<remote>https://review.gerrithub.io/johndoe/foo</remote>
|
||||
<credentialsId/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user