GitBlit server & JIRA server integration

Frédéric Tardieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2015

Hi all,

How to integrate a JIRA server v6.4.11 to a GitBlit server?

Thanks a lot,

F.

4 answers

0 votes
Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2015

The Git Integration plugin and the FishEye/Bitbucket plugins are able to list the issues related to Git commits.

Frédéric Tardieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2015

Pablo, Do you think the Git integration plugin or Fisheye/Bitbucket are compatible with GitBlit? Thanks, Fred

Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2015

Yes, you have to configure your GitBlit (Git) repositories in the plugin and they will be scanned periodically in order to find commits linked to issues. The Git integration might be simpler as it does not require a 3rd party product installed. If your current commits on GitBlit have not embedded a JIRA issue key in their comments then is not possible to see them, of course, but you can link issues to commits from now. IMPRTANT: I've just remembered that GitBlit can also parse commit messages in order to be integrated with 3rd party trackers, so perhaps you might want to ask in the GitBlit forum (which is very active too) for an integration with JIRA on GitBlit itself and if it does not meet your needs then try a JIRA plugin.

0 votes
P November 22, 2015

I mean you may take the GitBlit sources and use them to build a JIRA plugin and therefore run GitBlit right inside JIRA. It's not a straightforward task but it is feasible. I've found a old screenshot of GitBlit running on JIRA as plugin, please see the attached picture showing the GitBlit's New Repository page. 

gitblit-jira.png

Frédéric Tardieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2015

Well the GitBlit server is already running, with quite a lot of code already committed an several branches. Therefore, the need is only to be able to declare to which JIRA issue/task is a code commit related to, by indicating the issue id in the commit comment... Is there any simple way to do this?

0 votes
Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2015

GitBlit can be packed as JIRA add-on. In fact, it is something that I did a year ago...

 

Frédéric Tardieu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 22, 2015

Hi Pablo, What do you mean by "can be packed as JIRA add-on"? Thanks

0 votes
GabrielleJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2015

Typically, a software is created to integrate JIRA with any other software. A quick search in the Atlassian Marketplace (https://marketplace.atlassian.com/search?q=gitblit) says nothing about a Gitblit related add-on. So your best bet here is to create one yourself.

It's not that hard to integrate with JIRA. You can create an external software or an internal one (install it in JIRA itself and install it in Gitblit if it supports it). I will do the external one, a piece of program that does not need to be installed. All it does is send/receive information from JIRA and Gitblit(that is, if Gitblit have an External API to talk to).

Suggest an answer

Log in or Sign up to answer