我的 Jenkins php 项目构建成功,但作业和构建统计数据非常糟糕

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

下面是问题以及底部的完整报告... 我从 http://jenkins-php.org/

复制了我的项目模板

虽然我是 Jenkins 的新手,但我自己配置​​了所有东西,但卡在了这一点...

任何人都可以向我提供此文件 "Clover xml file does not exist in" 并让我知道将其放置在哪里...询问,因为即使我放置一个空白的 xml 文件,我也会遇到同样的错误 1) Clover xml 文件不存在于:/var/lib/jenkins/jobs/moneyproject/workspace 调用:build/logs/clover.xml 并且不会被复制到:/var/lib/jenkins/jobs/moneyproject/builds/13/cloverphp/clover.enter code here xml 找不到 'build/coverage/build/logs/clover.xml'。您是否为 Clover 生成了 XML 报告?

不知道 Crap4j
2) [CRAP4J] 未找到 crap4j 报告文件。配置错误? 构建步骤 'Report Crap' 将构建结果更改为 FAILURE 构建步骤 'Report Crap' 将构建标记为失败

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

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(数据库设置)中删除了所有实例但是我仍然能够看到这个错误,而且我无法生成 phpdoc 如果项目没有测试文件