Jenkins PHP工作失败 [英] Jenkins PHP Job Failing

查看:1312
本文介绍了Jenkins PHP工作失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已根据jenkins-php.org中的说明为我的PHP应用程序设置Jenkins。
我有一些问题,安装各种PEAR模块,但我认为他们都现在排序。
我有我的源代码在SVN和Jenkins拉它确定。

I've setup Jenkins for my PHP app as per the instructions on jenkins-php.org. I had a few issues with installing the various PEAR modules but I "think" they are all sorted now. I have my source in SVN and Jenkins is pulling it in ok.

我使用php模板作业,并按照说明进行了定制。

I'm using the php-template job and have customised it as per instructions.

当我运行作业时,我收到以下错误...

When I run the job I get the following error...

BUILD SUCCESSFUL
Total time: 5 seconds
[CHECKSTYLE] Collecting checkstyle analysis files...
[CHECKSTYLE] Finding all files that match the pattern build/logs/checkstyle.xml
[PMD] Collecting PMD analysis files...
[PMD] Finding all files that match the pattern build/logs/pmd.xml
[DRY] Collecting duplicate code analysis files...
[DRY] Finding all files that match the pattern build/logs/pmd-cpd.xml
Recording plot data
Publishing Clover coverage report...
Clover xml file does not exist in: /var/lib/jenkins/jobs/CasperCheck/workspace called: build/logs/clover.xml and will not be copied to: /var/lib/jenkins/jobs/CasperCheck/builds/2013-10-26_12-51-32/cloverphp/clover.xml
Could not find 'build/coverage/build/logs/clover.xml'.  Did you generate the XML report for Clover?
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/jobs/CasperCheck/workspace/build/api to /var/lib/jenkins/jobs/CasperCheck/builds/2013-10-26_12-51-32/htmlreports/API_Documentation
ERROR: Specified HTML directory '/var/lib/jenkins/jobs/CasperCheck/workspace/build/api' does not exist.
Build step 'Publish HTML reports' changed build result to FAILURE
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing PHPUnit-3.x (default)
[xUnit] [INFO] - [PHPUnit-3.x (default)] - No test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/CasperCheck/workspace' for the testing framework 'PHPUnit-3.x (default)'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'PHPUnit-3.x (default)'?
[xUnit] [ERROR] - No test reports found for the metric 'PHPUnit' with the resolved pattern 'build/logs/junit.xml'. Configuration error?.
[xUnit] [INFO] - Fail BUILD because 'set build failed if errors' option is activated.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
[xUnit] [INFO] - Stop build.
[JDepend] JDepend plugin is ready
[JDepend] Couldn't generate JDepend file at 'build/logs/jdepend.xml'java.io.FileNotFoundException: /var/lib/jenkins/jobs/CasperCheck/workspace/build/logs/jdepend.xml (No such file or directory)
Finished: FAILURE

我不完全确定这里会发生什么。是否可能是权限问题?

I'm not entirely sure whats going on here. Is it possibly a permissions issue?

感谢

推荐答案

问题。这张票帮了...

I found the issue. This ticket helped...

Jenkins-Job失败

此外,我还有一些其他build / config文件的位置的一些插件的问题,如果我已经阅读说明在php jenkins模板网站完全!

Plus, I had some further issues with the placement of some other build/config files for some for the plugins which could have been avoided if I had read the instructions on the php jenkins template site fully!

这篇关于Jenkins PHP工作失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆