Introduced in v2.9.0 of the Git add-on, this feature scans a locally accessible path for cloned Git repositories and automatically imports those Git repository references into Jira. A repository group called TRACKED FOLDER is added into the Git add-on repository settings.
To add repositories via Tracked Folders:
In the above example repository root,
all repositories under this mask (
/home/ec2-user/repositores/<repo2>) will be handled as one entry in
the Git Repositories configuration page. For other features, these are
treated as seperate repositories.
The tracked folder is added to the repository configuration list.
On the Git Repositories settings page, click Actions > Edit tracked folder to modify tracked folder git repository settings.
On the Git Repositories settings page, click Actions > Delete tracked folder to remove the tracked folder configuration from Jira.
A confirmation dialog will be displayed:
On the Git Repositories settings page, click Actions > Reset index.
This action will reset the indexes of the repositories for the selected tracked folder.
On the Git Repositories settings page, click Actions > Show tracked repositories.
This action will open the Tracked Folder dialog showing the tracked repositories.
On the Git Repositories settings page, click Actions > Reindex tracked folder.
This action will perform a reindex of the selected tracked folder.
It is possible to track all repositories hosted on a GitLab server from inside a Jira server. Setup NFS server on the GitLab computer and mount GitLab repositories folder as a remote NFS folder on Jira server. Configure NFS permissions to allow Jira to access GitLab folders by using either of the two possible solutions:
'all_squash' option must not be used in the NFS server
'etc/exports' file for GitLab folders. The NFS client should have
the 'git' group with the same GID as the 'git' group on the NFS server.
The Jira user on the NFS client should be added to the group 'git'.
'all_squash,async,anonuid=$uid,anongid=$gid' option on NFS server,
where $uid and $gid are user ID and group ID for 'git' user and
'git' group respectively (or another user/group which you are using to
access GitLab repositories on GitLab server).
In both cases either
'rw' options may be used on NFS server.