网站首页 文章专栏 gerrit 升级及安装插件--hooks
gerrit 升级及安装插件--hooks
编辑时间:Jan. 8, 2019, 11:49 a.m. 作者:赵彦昌 浏览量:1098

gerrit 低版本不能安装hooks 插件,好像是从gerrit-2.12 从开始支持的插件


所以想装hooks 插件的要升级到至少2.12 版本, 升级时不要跨版本升级。

比如当前版本是gerrit-2.10,你就下载gerrit-2.11.war 到gerrit 安装的根目录执行


java -jar gerrit-2.11.war init -d <SITE_PATH>


执行后,就想首次安装一样,会有好多询问,但,它会把已设置的内容设为默认值,直接回车就行,但如是新加的设置,就需要自己根据实际情况选择
依次下载其它版本,升级到最新。

如遇到启动时报错: No index versions for index 'groups' ready; run java -jar <SITE_PATH>/bin/gerrit.war reindex --index groups
按照提示执行
java -jar <SITE_PATH>/bin/gerrit.war reindex --index groups
即可,如还报错就执行下面的命令:

java -jar <SITE_PATH>/bin/gerrit.war reindex


G
M
T
Y
Detect languageAfrikaansAlbanianAmharicArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CorsicanCroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchFrisianGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHawaiianHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanKurdishKyrgyzLaoLatinLatvianLithuanianLuxembourgishMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPashtoPersianPolishPortuguesePunjabiRomanianRussianSamoanScots GaelicSerbianSesothoShonaSindhiSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshXhosaYiddishYorubaZulu
AfrikaansAlbanianAmharicArabicArmenianAzerbaijaniBasqueBelarusianBengaliBosnianBulgarianCatalanCebuanoChichewaChinese (Simplified)Chinese (Traditional)CorsicanCroatianCzechDanishDutchEnglishEsperantoEstonianFilipinoFinnishFrenchFrisianGalicianGeorgianGermanGreekGujaratiHaitian CreoleHausaHawaiianHebrewHindiHmongHungarianIcelandicIgboIndonesianIrishItalianJapaneseJavaneseKannadaKazakhKhmerKoreanKurdishKyrgyzLaoLatinLatvianLithuanianLuxembourgishMacedonianMalagasyMalayMalayalamMalteseMaoriMarathiMongolianMyanmar (Burmese)NepaliNorwegianPashtoPersianPolishPortuguesePunjabiRomanianRussianSamoanScots GaelicSerbianSesothoShonaSindhiSinhalaSlovakSlovenianSomaliSpanishSundaneseSwahiliSwedishTajikTamilTeluguThaiTurkishUkrainianUrduUzbekVietnameseWelshXhosaYiddishYorubaZulu
Text-to-speech function is limited to 200 characters
来说两句吧
最新评论