Gerrit 3.1 gitblit plugin

42 views
Skip to first unread message

Ansgar Binninger

unread,
Apr 17, 2020, 1:12:35 AM4/17/20
to Repo and Gerrit Discussion
Hi,

I have a short question regarding the Gerrit gitblit plugin. Is the plugin compatible with Gerrit 3.1.x and if not, are there any plans to update?

If it is compatible, am I able to use the jar build by the Gerrit CI or does I have to build it by myself, because I am not able to get the configuration part in the init phase with the jar from the Jenkins master build.

I think a more detailed documentation at the plugin would help other people too.

Thank you,

best regards

Ansgar

Matthias Sohn

unread,
Apr 17, 2020, 2:35:38 AM4/17/20
to Ansgar Binninger, Repo and Gerrit Discussion
In 3.1 the gitiles plugin is a core plugin [1] and is contained in the gerrit.war file. You can install it using
the gerrit init installtion command.


-Matthias

David Pursehouse

unread,
Apr 17, 2020, 3:20:50 AM4/17/20
to Ansgar Binninger, Repo and Gerrit Discussion
On Fri, Apr 17, 2020 at 2:12 PM Ansgar Binninger <ansgar.b...@gmail.com> wrote:
Hi,

I have a short question regarding the Gerrit gitblit plugin. Is the plugin compatible with Gerrit 3.1.x and if not, are there any plans to update?

I don't think anyone is maintaining this plugin, and there isn't a specific build of it for any of the stable branches. 
 

If it is compatible, am I able to use the jar build by the Gerrit CI or does I have to build it by myself, because I am not able to get the configuration part in the init phase with the jar from the Jenkins master build.

The master build *might* work with stable-3.1 but I'm afraid the only way to find out for sure is to try it.  If it doesn't work, you'd have to try to build it from source against the 3.1.x API and fix any issues.

As Matthias pointed out in another reply, the gitiles plugin is now included as a core plugin in 3.1.x so if you're looking for a code browser you might want to consider that instead of gitblit.

 

I think a more detailed documentation at the plugin would help other people too.

Thank you,

best regards

Ansgar

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/53a45b5a-b72b-44d9-8376-b16a1435a190%40googlegroups.com.

Ansgar Binninger

unread,
Apr 17, 2020, 8:24:33 AM4/17/20
to Repo and Gerrit Discussion
Thanks you both for the answer. i am aware of the other plugin. we have this already enabled, just try out some new plugins ;)

I am running now the other gitblit plugin by https://github.com/tomaswolf/gerrit-gitblit-plugin

maybe the plugin maintainer from the original one will fix the gerrit plugin.

Am Freitag, 17. April 2020 09:20:50 UTC+2 schrieb David Pursehouse:
On Fri, Apr 17, 2020 at 2:12 PM Ansgar Binninger <ansgar....@gmail.com> wrote:
Hi,

I have a short question regarding the Gerrit gitblit plugin. Is the plugin compatible with Gerrit 3.1.x and if not, are there any plans to update?

I don't think anyone is maintaining this plugin, and there isn't a specific build of it for any of the stable branches. 
 

If it is compatible, am I able to use the jar build by the Gerrit CI or does I have to build it by myself, because I am not able to get the configuration part in the init phase with the jar from the Jenkins master build.

The master build *might* work with stable-3.1 but I'm afraid the only way to find out for sure is to try it.  If it doesn't work, you'd have to try to build it from source against the 3.1.x API and fix any issues.

As Matthias pointed out in another reply, the gitiles plugin is now included as a core plugin in 3.1.x so if you're looking for a code browser you might want to consider that instead of gitblit.

 

I think a more detailed documentation at the plugin would help other people too.

Thank you,

best regards

Ansgar

--
--
To unsubscribe, email repo-d...@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-d...@googlegroups.com.

Luca Milanesio

unread,
Apr 17, 2020, 8:26:05 AM4/17/20
to Ansgar Binninger, Luca Milanesio, Repo and Gerrit Discussion, David Pursehouse

On 17 Apr 2020, at 08:20, David Pursehouse <david.pu...@gmail.com> wrote:

On Fri, Apr 17, 2020 at 2:12 PM Ansgar Binninger <ansgar.b...@gmail.com> wrote:
Hi,

I have a short question regarding the Gerrit gitblit plugin. Is the plugin compatible with Gerrit 3.1.x and if not, are there any plans to update?

I don't think anyone is maintaining this plugin, and there isn't a specific build of it for any of the stable branches. 

I am “officially” maintaining the plugin, but to be honest I left it behind after the GitBlit’s maintainer (James) left the project.
I see that now the GitBlit project is alive again, a new maintainer took over, so I’m keen to make it running again :-)

 

If it is compatible, am I able to use the jar build by the Gerrit CI or does I have to build it by myself, because I am not able to get the configuration part in the init phase with the jar from the Jenkins master build.

The master build *might* work with stable-3.1 but I'm afraid the only way to find out for sure is to try it.  If it doesn't work, you'd have to try to build it from source against the 3.1.x API and fix any issues.

The main issue with GitBlit is the alignment with the JGit library used inside Gerrit.
That’s why typically a custom-build of the GitBlit code is needed.


As Matthias pointed out in another reply, the gitiles plugin is now included as a core plugin in 3.1.x so if you're looking for a code browser you might want to consider that instead of gitblit.

Yeah, Gitiles is definitely more supported than GitBlit, albeit with a lower UX and a lot less features.

Gitiles provides also:
- Code analytics
- Code search

Which is really cool for large-scale installations.

AFAIK, GitBlit isn’t scalable enough for large repos and large-scale installations.

Luca.


 

I think a more detailed documentation at the plugin would help other people too.

Thank you,

best regards

Ansgar

-- 
-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/53a45b5a-b72b-44d9-8376-b16a1435a190%40googlegroups.com.

-- 
-- 
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.

Marcelo Ávila de Oliveira

unread,
Apr 17, 2020, 3:01:22 PM4/17/20
to Luca Milanesio, Repo and Gerrit Discussion

Em sex., 17 de abr. de 2020 às 09:26, Luca Milanesio <luca.mi...@gmail.com> escreveu:

Gitiles provides also:
- Code analytics
- Code search

Hi Luca,

How is it possible to search code using Gitiles? I've tried to find something in https://gerrit.googlesource.com/gerrit/ but I failed. What am I doing wrong?
 

"Esta mensagem pode conter informações confidenciais ou privilegiadas. Caso não seja o destinatário desta mensagem ou caso ela lhe tenha sido enviada por engano, pedimos a gentileza de eliminar esta mensagem e todos os seus anexos imediatamente. Utilizar, divulgar a quaisquer terceiros ou copiar esta mensagem para qualquer fim é expressamente proibido e punido por lei."

"This message may contain privileged or confidential information. If you are not the intended recipient of this message or if you have received it in error, please kindly delete this message and all its attachments immediately. Unauthorized use, disclosure to any third parties or copying of this message is expressly prohibited and may be subject to the penalties of law."

Ansgar Binninger

unread,
Apr 18, 2020, 6:59:26 AM4/18/20
to Repo and Gerrit Discussion


Am Freitag, 17. April 2020 14:26:05 UTC+2 schrieb lucamilanesio:


On 17 Apr 2020, at 08:20, David Pursehouse <david.p...@gmail.com> wrote:

On Fri, Apr 17, 2020 at 2:12 PM Ansgar Binninger <ansgar....@gmail.com> wrote:
Hi,

I have a short question regarding the Gerrit gitblit plugin. Is the plugin compatible with Gerrit 3.1.x and if not, are there any plans to update?

I don't think anyone is maintaining this plugin, and there isn't a specific build of it for any of the stable branches. 

I am “officially” maintaining the plugin, but to be honest I left it behind after the GitBlit’s maintainer (James) left the project.
I see that now the GitBlit project is alive again, a new maintainer took over, so I’m keen to make it running again :-)

 

If it is compatible, am I able to use the jar build by the Gerrit CI or does I have to build it by myself, because I am not able to get the configuration part in the init phase with the jar from the Jenkins master build.

The master build *might* work with stable-3.1 but I'm afraid the only way to find out for sure is to try it.  If it doesn't work, you'd have to try to build it from source against the 3.1.x API and fix any issues.

The main issue with GitBlit is the alignment with the JGit library used inside Gerrit.
That’s why typically a custom-build of the GitBlit code is needed.


As Matthias pointed out in another reply, the gitiles plugin is now included as a core plugin in 3.1.x so if you're looking for a code browser you might want to consider that instead of gitblit.

Yeah, Gitiles is definitely more supported than GitBlit, albeit with a lower UX and a lot less features.

Gitiles provides also:
- Code analytics
- Code search

Which is really cool for large-scale installations.

AFAIK, GitBlit isn’t scalable enough for large repos and large-scale installations.


Yeah that is right, gitblit is really not scalable for large repos and/or a lot of repos, users, but there are a few nice features, we need sometimes, like analytics and code search

But if this is also possible in gitiles, i think we could go without gitblit.

How can we configure these both features? i am not able to find anythin in the configuration..

Best regards

Ansgar
 

Luca Milanesio

unread,
Apr 18, 2020, 9:24:36 AM4/18/20
to Ansgar Binninger, Luca Milanesio, Repo and Gerrit Discussion
I’m afraid Gitiles is intended for repository-browsing only: it does only one thing but very well and scalable.

GitBlit has many more features, and is more suitable for small-scale setup.

Luca.


How can we configure these both features? i am not able to find anythin in the configuration..

Best regards

Ansgar
 

--
--
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.
Reply all
Reply to author
Forward
0 new messages