How to update core plugins during `gerrit init --batch`?

263 views
Skip to first unread message

Steffen Gebert

unread,
Nov 14, 2015, 6:19:11 AM11/14/15
to Repo and Gerrit Discussion
Hi,

I'm running `gerrit init --batch --install-plugin a --install-plugin b` for some of the core plugins during deployment.

What I noticed is that existing plugins aren't updated then. The only countermeasure that I was able to figure out is to run interactive site initialisation and acknowledge all warnings to overwrite the existing JARs.

Is there any way to batch-update also the plugins?

Yours
Steffen

Matthias Sohn

unread,
Nov 14, 2015, 8:55:20 AM11/14/15
to Steffen Gebert, Repo and Gerrit Discussion

Steffen Gebert

unread,
Nov 14, 2015, 10:30:53 AM11/14/15
to Matthias Sohn, Repo and Gerrit Discussion
Hi Matthias,

thanks for your response. Doesn't this essentially just call `gerrit init` automatically?

I'm talking about updates of an existing installation. The gerrit.war is deployed through chef and then `gerrit init` is called (which obviously could be done using automatic site initialization, too.

But are you sure that this will update the plugins? I'd expect that it executes the same code as `gerrit init`.

Yours
Steffen
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Matthias Sohn

unread,
Nov 15, 2015, 4:05:52 AM11/15/15
to Steffen Gebert, Repo and Gerrit Discussion
On Sat, Nov 14, 2015 at 4:30 PM, Steffen Gebert <ste...@steffen-gebert.de> wrote:
Hi Matthias,

thanks for your response. Doesn't this essentially just call `gerrit init` automatically?

I'm talking about updates of an existing installation. The gerrit.war is deployed through chef and then `gerrit init` is called (which obviously could be done using automatic site initialization, too.

But are you sure that this will update the plugins? I'd expect that it executes the same code as `gerrit init`.

says:
 
"If the 'gerrit.install_plugins' property is not defined then all packaged plugins will be installed. If it is defined then it is parsed as a comma separated list of plugin names to install. If the value is an empty string then no plugin will be installed."

so it seems you can configure that.

-Matthias

Steffen Gebert

unread,
Nov 15, 2015, 6:02:33 AM11/15/15
to Matthias Sohn, Repo and Gerrit Discussion
Yes, Matthias, and thanks for your response. Please forgive me that I don't just give what you suggest a try (have no tomcat setup running).

But I'm explicitly talking about plugin _updates_ during site init. The usual `java -jar gerrit.war init` defaults to _not_ overwrite existing plugin JARs. (one has to explicitly type `Y` to overwrite). So batch init sees to just use these defaults.

Steffen

David Ostrovsky

unread,
Nov 15, 2015, 12:40:34 PM11/15/15
to Repo and Gerrit Discussion, matthi...@gmail.com

Am Sonntag, 15. November 2015 03:02:33 UTC-8 schrieb Steffen Gebert:
Yes, Matthias, and thanks for your response. Please forgive me that I don't just give what you suggest a try (have no tomcat setup running).

But I'm explicitly talking about plugin _updates_ during site init. The usual `java -jar gerrit.war init` defaults to _not_ overwrite existing plugin JARs. (one has to explicitly type `Y` to overwrite).

This is broken and was fixed in: [1].

Steffen Gebert

unread,
Nov 15, 2015, 1:42:37 PM11/15/15
to David Ostrovsky, Repo and Gerrit Discussion
Ah, thanks David! I'm having a look at this.
Reply all
Reply to author
Forward
0 new messages