For this workaround to work, the user must have an access to a Jira hosting instance:
-
Login to the hosting server.
-
Create a new directory in the path different from the
JIRA HOME
directory. For example,~/Image-repo/
-
Go to a directory and perform a clone of a repository:
git clone --mirror [email protected]:repo/url.git **1
Or use the generic clone:
git clone [email protected]:repo/url.git **2
1 Modify the git repository URL to the correct one.
2 Using the generic clone may take a bit longer and requires more disk space to store. -
For
~/Image-repo/
directory, give read and write permissions to the same user running Jira.
For example, to make the user named user be an owner of a folder, perform the following command:sudo chown user ~/Image-repo
-
Using the local path, connect the repository via the Git Integration for Jira app Advanced setup wizard. Use the correct local path for the Git for Jira app to successfully detect the repository.
-
Click Detect to specify the origin value.
-
Configure other settings if required. Click Add to proceed.
The repository is added and indexing should work.
Git operations timeout
This setting affects how long will Git Integration for Jira app waits for connections performed during git clone and git fetch. We recommend to increase the time value if you have large repositories, and in some cases, when connecting to them mostly results in timeout.
Next: Working with Tracked folders
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)
Reindex API to trigger indexing
Recommended reindex interval setting
Increasing timeout threshold for large repositories while doing a Git pull (this page)
Recommended upgrade method for Git Integration for Jira
Discard cloned files in Jira Home directory (General setting)