Jenkins / Hudson构建错误

时间:2012-05-02 22:05:13

标签: continuous-integration hudson jenkins

我的构建集成由于以下原因而失败:

ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception
java.lang.NullPointerException: Name is null
    at java.lang.Enum.valueOf(Enum.java:213)
    at hudson.plugins.analysis.util.model.Priority.valueOf(Priority.java:18)
    at hudson.plugins.analysis.core.HealthAwarePublisher.getMinimumPriority(HealthAwarePublisher.java:622)
    at hudson.plugins.analysis.core.AbstractHealthDescriptor.<init>(AbstractHealthDescriptor.java:36)
    at hudson.plugins.pmd.PmdHealthDescriptor.<init>(PmdHealthDescriptor.java:25)
    at hudson.plugins.pmd.PmdResultAction.<init>(PmdResultAction.java:31)
    at hudson.plugins.pmd.PmdPublisher.perform(PmdPublisher.java:138)
    at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338)
    at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658)
    at hudson.model.Build$RunnerImpl.post2(Build.java:162)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627)
    at hudson.model.Run.run(Run.java:1459)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:239)
[ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您的工作配置中似乎检查了“发布PMD分析结果”,但Jenkins无法找到包含分析结果的文件。