在Jenkins上运行声纳分析独立分析时,出现以下错误。声纳扫描仪能够识别要分析的文件,并且能够对其进行精细分析,但是问题是当它试图将项目发布到仪表板时。
当我在浏览器中打开URL http:// vv123456:9000 / api / ce / submit?projectKey =
pkey&projectName =
pname
时,它显示
“ {“ errors”:[{“ msg”:“需要HTTP方法POST”“}] }” ,表示sonarqube网络服务很好。
Jenkins构建错误:
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: org.sonarqube.ws.client.HttpException: Error 500 on [http://vv123456:9000/api/ce/submit?projectKey=pkey&projectName=pname][1]
at org.sonarqube.ws.client.BaseResponse.failIfNotSuccessful(BaseResponse.java:34)
at org.sonar.batch.bootstrap.BatchWsClient.failIfUnauthorized(BatchWsClient.java:99)
at org.sonar.batch.bootstrap.BatchWsClient.call(BatchWsClient.java:69)
at org.sonar.batch.report.ReportPublisher.upload(ReportPublisher.java:172)
at org.sonar.batch.report.ReportPublisher.execute(ReportPublisher.java:127)
at org.sonar.batch.phases.PublishPhaseExecutor.publishReportJob(PublishPhaseExecutor.java:64)
at org.sonar.batch.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:51)
at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:86)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
... 9 more
在托管Web服务的服务器上的SonarQube日志中(在我的情况下为vv123456),错误记录为:
No such file or directory - C:/Windows/system32/config/systemprofile/AppData/Local/Temp
因此,我将路径添加到wrapper.conf中的临时位置为:
set.TMPDIR=/SonarQube/sonarqube-5.6/temp
这解决了问题。
我使用Jenkins和插件SonarQube和Sonar Runner。对于Jenkins中的SonarQube Runner安装,它使Warning成为这样。 /home/abc/sonnar-runner-2.4不是Jenkins master上的目录(但可能存在于一些从属服务器上) 当然,我在Jenkins服务器上制作了 /home/abc/目录。所以...我忽略警告并尝试构建tho...它
问题内容: 我收到以下异常: com.google.gwt.user.client.rpc.SerializationException:类型“ java.lang.Long”未包含在可以通过此SerializationPolicy进行序列化的类型集中,或者无法加载其Class对象。为了安全起见,此类型将不会序列化 使用GWT 2.1和内置的Jetty服务器。根据文档,此类型肯定是可序列化的…我如
嘿,伙计们,我试图ru我的模拟器,但当我运行它,它给我这个错误: “安装下列Android SDK包失败,因为某些许可证尚未被接受。构建-工具;30.0.2 Android SDK构建-工具30.0.2若要构建此项目,请接受SDK许可协议并使用Android Studio SDK管理器安装缺少的组件。或者,若要将许可协议从一个工作站转移到另一个工作站,请参见http://d.Android.com
在Android mobile上运行应用程序时出现此错误 正在调试模式下在DRA LX2上启动lib\main.dart...正在运行分级任务“Assemble Debug”...√build build\app\outputs\flutter-apk\app-debug.apk。正在安装build\app\outputs\flutter-apk\app.apk...错误:ADB退出,退出代码为1
我面临Google服务的问题。我想将SIGN IN API添加到我的应用程序中,但由于以下错误,我无法同步应用程序: 这是我的Gradle 请帮我解决。。。感谢并感谢:)
问题内容: 这是代码 错误回溯为: 似乎struct.unpack方法将’\ xff '解析为255并分配给,无论传递的非null字符集参数如何。 这是MySQL版本问题吗?(版本) 问题答案: 可以参考 拉取请求591