Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Exception SonarRunner失败-分析已在运行_Exception_Jenkins_Sonarqube - Fatal编程技术网

Exception SonarRunner失败-分析已在运行

Exception SonarRunner失败-分析已在运行,exception,jenkins,sonarqube,Exception,Jenkins,Sonarqube,嗨,我正在用sonarRunner运行一个Jenkins构建(在Gradle中),在这个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

嗨,我正在用sonarRunner运行一个Jenkins构建(在Gradle中),在这个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 09:57:21.410错误-看起来对“MyProject”的分析已在运行(不到一分钟前启动)。 :****运行程序失败 失败:生成失败,出现异常。 *出了什么问题: 任务“:*****运行程序”的执行失败。 >org.****.api.utils.com异常:该项目已在分析中。 *尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。 构建失败 好的,很快


我使用了
-Dsonar.forceAnalysis=true
,错误消失了。

我认为这是不推荐的。