Release v2.14
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJZCRwgAAoJEOmpvc3AFQagyYAH/35eXThvrpEbX6AZjMxynyS5
fpFvwYI+abHcnV4Rh1NEtBn/U02PI+7UHCCjHqF4tEeebqfK9VnEKHGxLXg8fuSE
WQArjryfdo2CSsc55UolqzpBTsMHjcR9FUUKMqHQ+mmFwP17sPSzhMBalCNBohxM
5OlDXI6fIMyVn8eXGm9Bt/ypfwlRnZYjk7UKd6pRjlN/2ZI+DPhUSNAzBvaVyaas
ukpZ7z4cXcKzA5CU9n4VyoBmU3CyDXTZLkNoeLlsnANqKODmIUzY7yF8X7TX1qd4
vG63pdmtjL3HctbhFgEPUBaYzyccyjllhHEr1istjUC12geyD3ExBQ80BsMd7ns=
=IL47
-----END PGP SIGNATURE-----
Adapt to new ProjectControl on stable-2.14/master

Change-Id: I29fd1b5b445832e8446936922d8501b54f64e33b
1 file changed
tree: 343909387d1b2e627786b5bed780ac5d8b0e47da
  1. .gitignore
  2. BUILD
  3. LICENSE
  4. README.md
  5. ReleaseNotes-2.9.txt
  6. external_plugin_deps.bzl
  7. src/
README.md

GitBlit plugin

Overview

Purpose of this plugin is to use Gitblit as web-based viewer (i.e. GitWeb replacement) on top of Gerrit Code Review.

How to build

As pre-requisites you need to make a custom-build of Gitblit and Wicket: the standard JARs downloaded from a public Maven repository aren't enough as they are missing some specific build parameters and constraints (i.e. shaded-jar) that are needed for a Gerrit plugin to work properly.

Gitblit

You need to clone Gitblit from GitHub and build it locally using the installMaven ANT target.

$ git clone https://github.com/gitblit/gitblit.git
$ cd gitblit && git checkout master
$ git fetch origin refs/pull/1168/head && git merge --no-edit FETCH_HEAD
$ ant -DresourceFolderPrefix=static installMaven

Gitblit plugin

This gitblit plugin is built with Bazel. Only the Gerrit in-tree build is supported.

Clone or link this plugin to the plugins directory of Gerrit's source tree.

  git clone https://gerrit.googlesource.com/gerrit
  git clone https://gerrit.googlesource.com/plugins/gitblit
  cd gerrit/plugins
  ln -s ../../gitblit .
  rm external_plugin_deps.bzl
  ln -s gitblit/external_plugin_deps.bzl .
  cd ../

From Gerrit source tree issue the command:

  bazel build plugins/gitblit

The output is created in

  bazel-genfiles/plugins/gitblit/gitblit.jar

This project can be imported into the Eclipse IDE. Add the plugin name to the CUSTOM_PLUGINS set in Gerrit core in tools/bzl/plugins.bzl, and execute:

  ./tools/eclipse/project.py

Configuration

In order to use GitBlit as GitWeb replacement, run the Gerrit init again and answer ‘Y’ when asked during the Gitblit-specific initialisation.

Example:

*** GitBlit Integration
***

Do you want to use GitBlit as your GitWeb viewer? [Y/n]? y
Link name                      [GitBlit]:
"Repositories" submenu title   [Repositories]:
"Activity" submenu title       [Activity]:
"Documentation" submenu title  [Documentation]:
"Search" submenu title (makes only sense to set if some projects are indexed in GitBlit; single dash unsets) [Search]:
"Browse" submenu title for the "Projects" top-level menu [Browse]: