"Couldn't start Bamboo Specs scanning" error in the UI after enabling repository Stored Specs
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The user gets the following error when enabling repository-stored Specs and clicking on Scan button:
Couldn't start Bamboo Specs scanning
We couldn't connect to the repository. Please check its configuration.
Diagnosis
We can see the following message in the atlassian-bamboo.log
file:
INFO [RssDetectionRunnable] Exception while executing RSS detection for repository
java.lang.UnsupportedOperationException: JGit implementation does not support this operation, please use native Git
at com.atlassian.bamboo.plugins.git.JGitOperationHelper.obtainLatestRevision(JGitOperationHelper.java:797)
Cause
This happens if Bamboo server does not have native Git installed on it.
Solution
- Install a Git binary on the Bamboo server. See Git - Installing Git for more information;
- Define Git as a Server Capability at Bamboo Administration > Overview > Server Capabilities page