InitBugzilla has to do modifications of gerrit.config in run() method Modifications of gerrit.config done in the postRun() method are not persisted in the review site. Change-Id: I11d439a587878ffc2f18ba31d8ba8d667f801b27 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java b/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java index 53f7b5c..1b22bbf 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java +++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/bz/InitBugzilla.java
@@ -51,8 +51,9 @@ this.sections = sections; } - public void postRun() throws IOException, ConfigInvalidException { - super.postRun(); + @Override + public void run() throws IOException, ConfigInvalidException { + super.run(); this.bugzilla = sections.get(pluginName, null); this.bugzillaComment = sections.get(COMMENT_LINK_SECTION, pluginName);