Locking FileBasedConfig[/root/.config/jgit/config] failed after 5 retries

Template for a good new topic, formatted with Markdown:

  • ALM/CI used: Bitbucket Cloud with SonarCloud integration
  • Scanner command used: ./gradlew build jacocoTestReport sonarqube
  • Gradle with sonarqube plugin: id “org.sonarqube” version “2.7.1”
  • Languages of the repository: Java and Javascript
  • Error observed: At the end of the build, we see the following in the output causing a several minute delay for every pipeline using the sonar:
:jacocoTestReport
:sonarqube
locking FileBasedConfig[/root/.config/jgit/config] failed after 5 retries
BUILD SUCCESSFUL
  • Steps to reproduce: Run any Bitbucket pipeline using the Gradle tasks listed above

Further development, today a build failed with the following (passes normally, no changes):

locking FileBasedConfig[/root/.config/jgit/config] failed after 5 retries
:sonarqube FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sonarqube'.
> The 'report' parameter is missing

I close this thread, because it’s duplicate of this other thread: