summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs
diff options
context:
space:
mode:
authorLuca Milanesio <luca.milanesio@gmail.com>2020-01-03 10:21:17 +0000
committerLuca Milanesio <luca.milanesio@gmail.com>2020-01-03 10:43:47 +0000
commit8a27ad1ed16ec432265aeedf001e7fdc9fa920a7 (patch)
treedf02a8cf87da3d40cf8c0c2c47bd0c4b01d7816f /jenkins_jobs
parent497198a2528fd14eebfa5de5f4798c92dd09603a (diff)
downloadpython-jenkins-job-builder-8a27ad1ed16ec432265aeedf001e7fdc9fa920a7.tar.gz
python-jenkins-job-builder-8a27ad1ed16ec432265aeedf001e7fdc9fa920a7.tar.xz
python-jenkins-job-builder-8a27ad1ed16ec432265aeedf001e7fdc9fa920a7.zip
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
Diffstat (limited to 'jenkins_jobs')
-rw-r--r--jenkins_jobs/modules/project_multibranch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/jenkins_jobs/modules/project_multibranch.py b/jenkins_jobs/modules/project_multibranch.py
index 3761ddc1..2a7a3870 100644
--- a/jenkins_jobs/modules/project_multibranch.py
+++ b/jenkins_jobs/modules/project_multibranch.py
@@ -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", "")])),