我使用Jenkins进行部署过程,它运行良好。当我试图采取rcov报告轨道统计报告和制动员警告。
[ubuntu@xx.xxx.xxx.xx]执行命令
**[输出::ubuntu@xx.xxx.xxx.xx]正在启动Unicorn。。
命令在2228ms 中完成
构建后任务:成功
生成后任务结束:0
错误:Publisher hudson.plugins.brakeman.BrakemanPublisher由于异常而中止java.io.FileNotFoundException:/home/kannan/.jenkins/workspace/Publisher Dev/brackman-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统计报表。。。
生成失败,跳过rcov覆盖率报告
生成步骤"发布Rcov报告"将生成标记为失败
完成:故障
我该怎么做
查看错误:
java.io.FileNotFoundException: /home/kannan/.jenkins/workspace/Publisher Dev/brakeman-output.tabs (No such file or directory)
这意味着詹金斯找不到Brakeman生成的报告。要么你没有正确设置作业,要么Brakeman由于某种原因失败了。您应该检查控制台输出中的Brakeman错误,并验证您是否已按此处所述正确配置作业。