使用SonarQube分析Java项目时以及在单元测试源代码中激活规则跟踪质量问题时出现NullPointerException

时间:2015-06-03 09:59:00

标签: java maven jenkins sonarqube

我尝试在Jenkins Job(maven clean install)之后执行SonarQube(Post构建操作)分析

在我的Jenkins作业日志中,我有这个堆栈:

- ERROR | [iOS] The `source_files` pattern did not match any file

- [!] The specified path `GhazalahKhan/Pyze/Pyze.podspec` does not point to an existing podspec file.

- warning: Could not find remote branch 0.0.1 to clone.
- fatal: Remote branch 0.0.1 not found in upstream origin

我的声纳插件:
  - Checkstyle 2.2
  - Cobertura 1.6.3
  - Findbugs 3.1
  - Java 3.3
  - PMD 2.3

如果在我的Jenkins工作中删除Sonar步骤我没有问题,我的工作就是成功

我不知道这是Jenkins还是Sonar问题。

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

I'm having a similar issue, and it seems (1,2) this should be fixed by upgrading sonar to 4.5.4/5.0.1/5.1 as per http://jira.sonarsource.com/browse/SONAR-6162.