how to install gitiles for gerrit 3.6.1

469 views
Skip to first unread message

Ali Ahsan

unread,
Jun 30, 2022, 11:48:41 PM6/30/22
to Repo and Gerrit Discussion
Hi All,

How can i install gitiles for Gerrit 3.6.1. I spend hours but All I find old conversations.

Ali

David Charles T M

unread,
Jul 1, 2022, 12:50:50 AM7/1/22
to Ali Ahsan, Repo and Gerrit Discussion
Hi Ali,
gitiles is core plugin[1]. It will get downloaded while performing java init if you give "yes" to the prompt. 
How can i install gitiles for Gerrit 3.6.1. I spend hours but All I find old conversations.

Ali Ahsan

unread,
Jul 1, 2022, 5:21:25 AM7/1/22
to Repo and Gerrit Discussion
I am new to Gerrit, and Not sure if you talking about the install setup, I have run this command and also given yes to all how can I access gitiles via browser before it was mydomain.com/plugin/gitiles/...

java -jar gerrit-3.6.1.war init --batch -d ~/gerrit_prod

davidch...@gmail.com

unread,
Jul 1, 2022, 5:30:51 AM7/1/22
to Repo and Gerrit Discussion
 
java -jar gerrit-3.6.1.war init --batch -d ~/gerrit_prod
 
As you are using "--batch" during init, it doesn't prompt for plugin installation. You can run without "--batch" option and give needed inputs or use "--install-plugin=<PLUGIN_NAME>"  or "--install-all-plugins" to get gitiles installed. 

Regards,
Challs

Ali Ahsan

unread,
Jul 1, 2022, 5:40:24 AM7/1/22
to Repo and Gerrit Discussion
Thanks for the reply I have already installed the server and it is in production is there any way I can do this after installation?

Dennis W

unread,
Jul 1, 2022, 6:31:18 AM7/1/22
to Repo and Gerrit Discussion
aliah...@gmail.com schrieb am Freitag, 1. Juli 2022 um 11:40:24 UTC+2:
Thanks for the reply I have already installed the server and it is in production is there any way I can do this after installation?

Well, "re-initializing" an existing Gerrit installation is no big deal. You usually just confirm the existing settings, which takes a minute or two.
In batch-mode (with the --install-plugin parameter), even faster. Of course you would need to stop the server before doing that.

If you don't want to touch your production instance, you can always just do another "install" in another folder (or even another pc), install the plugin there and copy it over to your production instance.
Just make sure to use the same version (gerrit-3.6.1.war).
Gerrit, by default, checks the plugins folder every minute, so it should be recognized automatically after a short time.

Hope this helps,
Dennis

Ali Ahsan

unread,
Jul 1, 2022, 9:08:48 AM7/1/22
to Repo and Gerrit Discussion
Super thanks for the help 

Nuno Costa

unread,
Jul 1, 2022, 9:15:51 AM7/1/22
to Repo and Gerrit Discussion
If you don't want to touch your production instance, you can always just do another "install" in another folder (or even another pc), install the plugin there and copy it over to your production instance.
Just make sure to use the same version (gerrit-3.6.1.war).
Gerrit, by default, checks the plugins folder every minute, so it should be recognized automatically after a short time.

You can also just extract the jar file from inside the war file.
All core plugins are located under WEB-INF/plugins.

Ali Ahsan

unread,
Jul 1, 2022, 3:35:26 PM7/1/22
to Repo and Gerrit Discussion
Thanks I tried Unzip war file and it worked Super thank you all
Ali

Reply all
Reply to author
Forward
0 new messages