There are three possible ways to setup a repository root that is not located in the Jira home directory:
-
Clone the repository outside of Jira then connect to it via Manage git repositories page ➜ Connect to Git Repository ➜ Advanced Setup.
-
Clone the repository with the standard Connect to Git Repository wizard into the Jira home directory. Soon afterwards, move the cloned repository and update the settings on the repository.
-
You could symlink the
{$JIRA_HOME}/data/git-plugin
directory to a different volume. The standard Connect to Git Repository wizard will still write there, but the data will reside on the different volume. But be aware, that the Git Integration for Jira app treats anything in thegit-plugin
folder as a clone that it owns.
Prev: Adding a repository hosted on Windows Servers or Windows Network Share (Admins)
Next: Reindex API to trigger indexing
More related articles on Git for Jira administrators
Setup GitLab Server to respond to incoming network API calls
New GitLab v10+ authentication
General settings: Improving Jira performance
Adding a repository hosted on Windows Servers or Windows Network Share (Admins)
Setting up repository root not located in Jira Home directory (Admins) (this page)
Reindex API to trigger indexing
Recommended reindex interval setting
Increasing timeout threshold for large repositories while doing a Git pull
Recommended upgrade method for Git Integration for Jira
Discard cloned files in Jira Home directory (General setting)