首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jenkins PHP作业失败

Jenkins PHP作业失败
EN

Stack Overflow用户
提问于 2013-10-26 11:56:55
回答 2查看 6.7K关注 0票数 2

我已经按照jenkins-php.org上的说明为我的PHP应用程序设置了Jenkins。在安装各种PEAR模块时,我遇到了一些问题,但我“认为”它们现在都已经解决了。我在SVN有我的线人,詹金斯正在查。

我正在使用php-模板作业,并根据说明定制了它。

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

代码语言:javascript
复制
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

我不太确定这是怎么回事。这可能是权限问题吗?

谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-11-04 09:32:42

我发现了问题。这张票有帮助..。

Jenkins-Job fails

此外,我还有其他一些插件的构建/配置文件的放置问题,如果我完全阅读了php jenkins模板站点上的说明,这是可以避免的!

票数 -1
EN

Stack Overflow用户

发布于 2013-10-28 14:54:13

这闻起来像是工作空间问题的相对路径。/var/lib/jenkins/jobs/CasperCheck/workspace/build/存在吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19606407

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档