sonar maven plugin build error, SonarQube version: null

前端 未结 6 1665
你的背包
你的背包 2021-01-05 12:48

My jenkins builds just started to fail with this message:

[INFO] --- sonar-maven-plugin:2.7:sonar (default-cli) @ cividas-core-web ---
[INFO] artifact com.on         


        
6条回答
  •  情书的邮戳
    2021-01-05 13:22

    This is a hint:

    [INFO] SonarQube version: null
    

    Later in the code, Maven tries to parse this version number and fails. The source code is here: https://github.com/mojohaus/sonar-maven-plugin/blob/master/src/main/java/org/codehaus/mojo/sonar/bootstrap/RunnerBootstrapper.java

    From the source of the SonarQube runner, this is backed by a properties instance. So maybe the code couldn't access the server or the server isn't sending this data back. Hard to tell.

    What I can see is that the code changed in 2.5. That's probably why 2.4 still works. See here how to nail down the versions: Jenkins Sonar plugin suddenly stops working

提交回复
热议问题