【发布时间】:2016-05-31 15:37:30
【问题描述】:
我已将 jenkins 配置为有一个作业,该作业将运行批处理命令集以编译 java 文件。我也为该作业启用了 findbugs。但是当我构建作业时,我得到的输出如下
No changes.
Started by anonymous user
FindBugs: 0 warnings.
No warnings since build 4.
New zero warnings highscore: no warnings since yesterday!
During parsing an error has been reported.
当我点击错误时,我得到的只是
Errors
No report files were found. Configuration error?
如果我在 jenkins 之外运行 findbugs,我会得到正确的输出
我的 Java 文件看起来像这样
class Input {
public static void main(String[] args) {
System.out.println("Hello World! "); // Display the string.
String str = null;
if(str.equals("Test")) {
/* The code here will not be reached, as an exception will be thrown. */
}
}}
【问题讨论】: