[Update in 2013.12.17]
According to the comments below, I upgrade gerrit to 2.8 and gitblit to 1.3.2, same as before.
Compiling gitblit from source is complex, I extract the jar from gitblit.zip from github release
[Update end]
I try to install gerrit (2.8) with gitblit (1.3.2) plugins on windows for demo, gerrit works and gitblit plugin is installed with links available, while when it states "Not found" when I browse branch.
Below are my steps on Windows using MSysGit environment
$ java -jar gerrit-2.8.war init -d review
# use ldap to connect local ldap server, others are default
# copy gitblit plugin into plugins' folder
$ unzip gitblit-1.3.2.zip
$ cp gitblit.jar review/plugins/gitblit.jar
Update the etc/gerrit.config
for gitblit
[gitweb]
type = custom
url = plugins/
project = gitblit/summary/${project}
revision = gitblit/commit/${project}/${commit}
branch = gitblit/log/${project}/${branch}
filehistory = gitblit/history/${project}/${branch}/${file}
linkname = GitBlit
Now start the gerrit
$ java -jar review/bin/gerrit.war daemon -d review
The gerrit is started as normal, and the gitblit link is available for the branches, see
While when I click the gitblit link, it is stated below (url link is http:///plugins/gitblit/log/gtr/HEAD , can't find any error in logs
directory
HTTP ERROR: 404
Problem accessing /plugins/gitblit/log/gtr/HEAD. Reason:
Not Found
Any suggestion ?