[英]Jenkins cannot trigger a SonarQube project analysis with Maven
I am trying to configure Jenkins+Maven+SonarQube as described in the documentation on http://docs.sonarqube.org/display/SONAR/Triggering+SonarQube+on+Jenkins+Job#TriggeringSonarQubeonJenkinsJob-TriggeringaProjectAnalysiswithMaven 我正在尝试按照http://docs.sonarqube.org/display/SONAR/Triggering+SonarQube+on+Jenkins+Job#TriggeringSonarQubeonJenkinsJob-TriggeringaProjectAnalysiswithMaven上的文档中所述配置Jenkins + Maven + SonarQube
I installed the Sonar plugin (2.1) in Jenkins (1.570) - curiously, the plugin is called Sonar and not SonarQube as described on https://wiki.jenkins-ci.org/display/JENKINS/Plugins 我在詹金斯(1.570)中安装了Sonar插件(2.1)-奇怪的是,该插件名为Sonar,而不是https://wiki.jenkins-ci.org/display/JENKINS/Plugins所述的SonarQube
I configured the plugin as described on http://docs.sonarqube.org/display/SONAR/Configuring+SonarQube+Jenkins+Plugin . 我已按照http://docs.sonarqube.org/display/SONAR/Configuring+SonarQube+Jenkins+Plugin所述配置了插件。 I did not configure sonar-runner because I will not be using that, I will trigger all my analysis with Maven. 我没有配置声纳运行器,因为我不会使用它,我将使用Maven触发所有分析。
Now if I configure a Maven job, I do not have "Sonar" as a post-build action. 现在,如果我配置了Maven作业,则没有“声纳”作为构建后的动作。 I only have "Invoke Standalone Sonar Analysis", which is a sonar-runner, which I do not want. 我只有“调用独立声纳分析”,它是声纳运行器,我不需要。
What am I missing here? 我在这里想念什么?
Concerning name of the plugin (Sonar vs SonarQube) this is because there was no release of the plugin since renaming of the project. 关于插件的名称(Sonar vs SonarQube),这是因为自从重命名项目以来就没有发布插件。
Concerning your main issue, I think your are lost in Jenkins UI (don't worry it happens all the time): 关于您的主要问题,我认为您在Jenkins UI中迷路了(不用担心它会一直发生):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.