我的詹金斯php项目构建是成功的,但工作和构建统计是非常糟糕的


My Jenkins php project build is successful but Job and Build Statistics are very bad

下面是问题和完整的报告…我复制了我的项目模板从http://jenkins-php.org/

虽然我是新来的詹金斯我自己配置的一切,但在这一点上卡住了…

谁能提供这个文件给我"Clover xml文件不存在",让我知道在哪里放置它…问,因为即使我放置一个空白的xml文件,我得到相同的错误1) Clover xml文件在:/var/lib/jenkins/job/moneyproject/workspace中不存在,称为:build/logs/Clover .xml,并且不会复制到:/var/lib/jenkins/job/moneyproject/builds/13/cloverphp/Clover。enter code here xml找不到"build/coverage/build/logs/clover.xml"。您为Clover生成XML报告了吗?

不了解Crap4j
2) [CRAP4J]没有发现CRAP4J报告文件。配置错误?构建步骤"报告错误"将构建结果更改为失败构建步骤"报告错误"将构建标记为失败

请帮我理解这部分
3) [xUnit] [INFO] -转换'/var/lib/jenkins/jobs/moneyproject/workspace/build/logs/junit.xml'。[xUnit] [INFO] -检查"测试失败"阈值。

4) Finished: FAILURE

Here is the Entire Report

BUILD SUCCESSFUL
Total time: 53 seconds
[WARNINGS] Parsing warnings in console log with parser PHP Runtime
[CHECKSTYLE] Collecting checkstyle analysis files...
[CHECKSTYLE] Finding all files that match the pattern build/logs/checkstyle.xml
[CHECKSTYLE] Parsing 1 file in /var/lib/jenkins/jobs/moneyproject/workspace
[CHECKSTYLE] Successfully parsed file /var/lib/jenkins/jobs/moneyproject/workspace/build/logs/checkstyle.xml with 0 unique warnings and 0 duplicates.
[DRY] Collecting duplicate code analysis files...
[DRY] Finding all files that match the pattern build/logs/pmd-cpd.xml
[DRY] Parsing 1 file in /var/lib/jenkins/jobs/moneyproject/workspace
[DRY] Successfully parsed file /var/lib/jenkins/jobs/moneyproject/workspace/build/logs/pmd-cpd.xml with 0 unique warnings and 0 duplicates.
Recording plot data
Publishing Clover coverage report...
Clover xml file does not exist in: /var/lib/jenkins/jobs/moneyproject/workspace called: build/logs/clover.xml and will not be copied to: /var/lib/jenkins/jobs/moneyproject/builds/13/cloverphp/clover.xml
Could not find 'build/coverage/build/logs/clover.xml'.  Did you generate the XML report for Clover?
[CRAP4J] Collecting Crap4J analysis files...
[CRAP4J] Searching for report files within build/logs/crap4j.xml
[CRAP4J] Using the new FileSetBuilder
[CRAP4J] No crap4j report files were found. Configuration error?
Build step 'Report Crap' changed build result to FAILURE
Build step 'Report Crap' marked build as failure
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/jobs/moneyproject/workspace/build/api to /var/lib/jenkins/jobs/moneyproject/builds/13/htmlreports/API_Documentation
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing PHPUnit-3.x (default)
[xUnit] [INFO] - [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/moneyproject/workspace' for the testing framework 'PHPUnit-3.x (default)'.
[xUnit] [INFO] - Converting '/var/lib/jenkins/jobs/moneyproject/workspace/build/logs/junit.xml' .
[xUnit] [INFO] - Check 'Failed Tests' threshold.
[xUnit] [INFO] - Check 'Skipped Tests' threshold.
[xUnit] [INFO] - Setting the build status to FAILURE
[xUnit] [INFO] - Stopping recording.
[JDepend] JDepend plugin is ready
[JDepend] Found 188 classes in 1 packages
Finished: FAILURE

谢谢!

您的crap4j插件说它找不到报告文件,您是否在构建位置看到reports.xml文件?

解决这个问题的方法是安装libxml2-utils php5-xdebug。现在我只是想避免PHPUnit测试时需要…听起来很简单,但我从代码以及GUI(DB设置)中删除了所有实例,但我仍然能够看到这个错误,我也无法生成phpdoc,如果项目没有测试文件