SonarRunner error - analysis is already running

Hey. I am running Jenkins Build with sonarRunner (in Gradle) and during this sonarRunner task it fails 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 analyzed.

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

BUILD FAILED 

+3


source to share


1 answer


OK, that was fast.



I used -Dsonar.forceAnalysis=true

and the error went away.

+4


source







All Articles