Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 为什么是詹金斯;“建立成功的企业”;,但是";完成:失败;?_Php_Jenkins_Continuous Integration - Fatal编程技术网

Php 为什么是詹金斯;“建立成功的企业”;,但是";完成:失败;?

Php 为什么是詹金斯;“建立成功的企业”;,但是";完成:失败;?,php,jenkins,continuous-integration,Php,Jenkins,Continuous Integration,我使用php模板设置Jenkins作业,并使用它进行测试。 建筑完工后,我收到一条信息: BUILD SUCCESSFUL Total time: 58 seconds [WARNINGS] Parsing warnings in console log with parser PHP Runtime [CHECKSTYLE] Collecting checkstyle analysis files... [CHECKSTYLE] Finding all files that match the

我使用php模板设置Jenkins作业,并使用它进行测试。 建筑完工后,我收到一条信息:

BUILD SUCCESSFUL
Total time: 58 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/New job/workspace
[CHECKSTYLE] Successfully parsed file /var/lib/jenkins/jobs/New job/workspace/build/logs/checkstyle.xml with 0 unique warnings and 0 duplicates.
[PMD] Collecting PMD analysis files...
[PMD] Finding all files that match the pattern build/logs/pmd.xml
[PMD] Parsing 1 file in /var/lib/jenkins/jobs/New job/workspace
[PMD] Successfully parsed file /var/lib/jenkins/jobs/New job/workspace/build/logs/pmd.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/New job/workspace
[DRY] Successfully parsed file /var/lib/jenkins/jobs/New job/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/New job/workspace called: build/logs/clover.xml and will not be copied to: /var/lib/jenkins/jobs/New job/builds/4/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/New job/workspace/build/api to /var/lib/jenkins/jobs/New job/builds/4/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/New job/workspace' for the testing framework 'PHPUnit-3.x (default)'.
[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
詹金斯日志:

мар 17, 2016 11:24:46 AM hudson.model.Run execute
INFO: New job #4 main build action completed: SUCCESS
мар 17, 2016 11:24:47 AM org.jenkinsci.plugins.xunit.service.XUnitService infoSystemLogger
INFO: [xUnit] - [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'build/logs/junit.xml' relative to '/var/lib/jenkins/jobs/New job/workspace' for the testing framework 'PHPUnit-3.x (default)'.
[warn] [XHTML Sink] Modified invalid anchor name: 'SebastianBergmann\Money' to 'SebastianBergmannMoney'
我做错了什么


更新:问题是我没有“php5 xdebug”

由于此构建步骤,您的作业被标记为失败:

[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

您必须调查此垃圾报告丢失的原因。

消息中有两个独立的问题

未找到Clover结果:

Publishing Clover coverage report...
Clover xml file does not exist in: /var/lib/jenkins/jobs/New job/workspace called: build/logs/clover.xml and will not be copied to: /var/lib/jenkins/jobs/New job/builds/4/cloverphp/clover.xml
Could not find 'build/coverage/build/logs/clover.xml'.  Did you generate the XML report for Clover?
[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
未找到Crap结果:

Publishing Clover coverage report...
Clover xml file does not exist in: /var/lib/jenkins/jobs/New job/workspace called: build/logs/clover.xml and will not be copied to: /var/lib/jenkins/jobs/New job/builds/4/cloverphp/clover.xml
Could not find 'build/coverage/build/logs/clover.xml'.  Did you generate the XML report for Clover?
[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

我无法告诉您到底做错了什么,但是检查您的配置可以帮助您确定原因。

将您的phpdox.xml移动到项目根目录下

谢谢,问题是我没有“php5 xdebug”,请您详细说明您的答案,并添加关于您提供的解决方案的更多描述,好吗?