AKS
AKS

Reputation: 17306

SonarRunner failed - Analysis is already running

Hi I'm running a Jenkins build with sonarRunner (in Gradle) and during this sonarRunner task, it's failing with the following error message. Any ideas! how to fix it?

09:57:21.410 ERROR - It looks like an analysis of 'MyProject' is already running (started less than a minute ago).
:****Runner FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':****Runner'.
> org.****.api.utils.SonarException: The project is already being analysed.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED 

Upvotes: 3

Views: 1348

Answers (1)

AKS
AKS

Reputation: 17306

OK, that was quick.

I used -Dsonar.forceAnalysis=true and the error went away.

Upvotes: 4

Related Questions