gpt4 book ai didi

jenkins - Sonar 服务器无法访问

转载 作者:行者123 更新时间:2023-12-01 05:04:55 25 4
gpt4 key购买 nike

我在 jenkins 的 sonarQube 插件上遇到了问题。当我尝试编译我的项目并启动 sonarQube 时,我遇到了一个问题:

[INFO] Sonar server can not be reached. Please check the parameter 'sonar.host.url': http://null:9000
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Sonar server can not be reached. Please check the parameter 'sonar.host.url': http://null:9000
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Sonar server can not be reached. Please check the parameter 'sonar.host.url': http://null:9000
at org.codehaus.mojo.sonar.ServerMetadata.connect(ServerMetadata.java:67)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:85)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more

但是,当我查看我的配置时,我没有看到错误......

有人能帮我吗? :/

莱多诺斯

P.S:我试图发布我的配置图片,但我不能......

最佳答案

我不确定您是否忘记设置 Server URL从:Manage Jenkins --> Configure System --> Sonar installations --> Add Sonar --> Advanced --> Server URL ,但希望这个答案有帮助。
enter image description here

关于jenkins - Sonar 服务器无法访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29915240/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com