执行jkins报告,来自詹金斯的rails stats报告和制动器警告时出错

时间:2013-08-07 05:57:24

标签: ruby-on-rails jenkins statistics rcov brakeman

我正在使用Jenkins进行部署,它运行正常。当我尝试采取rcov报告rails stats报告和制动器警告。

[ubuntu@xx.xxx.xxx.xx]执行命令

** [out :: ubuntu@xx.xxx.xxx.xx]启动Unicorn ..

命令在2228ms完成

POST BUILD TASK:SUCCESS

结束后任务结束任务:0

错误:发布者hudson.plugins.brakeman.BrakemanPublisher由于异常而中止 java.io.FileNotFoundException:/home/kannan/.jenkins/workspace/Publisher Dev / brakeman-output.tabs(没有这样的文件或目录)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:137)

at hudson.FilePath.read(FilePath.java:1570)

at hudson.FilePath.readToString(FilePath.java:1595)

at hudson.plugins.brakeman.BrakemanPublisher.perform(BrakemanPublisher.java:99)

at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:146)

at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:331)

    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)

    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)

    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)


    at hudson.model.Build$BuildExecution.post2(Build.java:183)

at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)

at hudson.model.Run.execute(Run.java:1618)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:247)

发布rails stats report ...

构建失败,跳过rcov覆盖率报告

构建步骤'发布Rcov报告'将构建标记为失败

完成:失败

我应该做什么

1 个答案:

答案 0 :(得分:1)

查看错误:

java.io.FileNotFoundException: /home/kannan/.jenkins/workspace/Publisher Dev/brakeman-output.tabs (No such file or directory)

这意味着Jenkins无法找到Brakeman生成的报告。要么你没有正确设置工作,要么Brakeman由于某种原因失败了。您应检查控制台输出是否存在Brakeman错误,并确认您已将作业正确配置为described here