您好我正在使用sonarRunner(在Gradle中)运行Jenkins构建,并且在此sonarRunner任务期间,它失败并显示以下错误消息。有任何想法吗!如何解决?
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
答案 0 :(得分:4)
好的,那很快。
我使用了-Dsonar.forceAnalysis=true
,错误就消失了。