ant — Дженкинс PHP работа не удалось

Несколько дней боролись с Дженкинсом и ошибками, которые мне подарили. Пока что у меня что-то стабилизировалось, но я не могу понять, потому что сборка не удалась. Вот что я зарабатываю и не могу понять, где я не прав.

Рассмотрим следующие две темы:
Jenkins PHP Job Failing ,
Дженкинс-Джоб терпит неудачу

но я не могу найти решение своей проблемы.

[workspace] $ ant

Buildfile: /var/lib/jenkins/jobs/MTR-CMS/workspace/build.xml

clean:
[delete] Deleting directory /var/lib/jenkins/jobs/MTR-CMS/workspace/build/coverage
[delete] Deleting directory /var/lib/jenkins/jobs/MTR-CMS/workspace/build/logs

prepare:
[mkdir] Created dir: /var/lib/jenkins/jobs/MTR-CMS/workspace/build/coverage
[mkdir] Created dir: /var/lib/jenkins/jobs/MTR-CMS/workspace/build/logs

phpunit:
[exec] PHPUnit 4.4.0 by Sebastian Bergmann.
[exec]
[exec] Configuration read from /var/lib/jenkins/jobs/MTR-CMS/workspace/phpunit.xml
[exec]
[exec] .
[exec]
[exec] Time: 154 ms, Memory: 10.00Mb
[exec]
[exec] OK (1 test, 1 assertion)
[exec]
[exec] Generating code coverage report in Clover XML format ... done
[exec]
[exec] Generating code coverage report in HTML format ... done

build:

BUILD SUCCESSFUL
Total time: 1 second
Publishing Clover coverage report...
Publishing Clover HTML report...
Publishing Clover XML report...
Publishing Clover coverage results...
[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
[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/MTR-CMS/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] - Failing BUILD.
[xUnit] [INFO] - There are errors when processing test results.
[xUnit] [INFO] - Skipping tests recording.
[xUnit] [INFO] - Stop build.
Finished: FAILURE

2

Решение

Что не ясно?

[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`

Ваш Плагин Crap4J устанавливает результат сборки на неудачу.

Он также говорит, что не может найти файлы отчетов, поэтому ваша сборка не производит .xmlто, что нужно плагину, или вы не указали расположение этих файлов

-1

Другие решения

Пожалуйста, проверьте ваш файл сборки

ваш файл конфигурации сборки не может создать файл junit.xml

или же

проверьте файл phpunit.xml

<logging>
<log type="coverage-html" target="coverage"/>
<log type="coverage-clover" target="clover/clover.xml"/>
<log type="coverage-crap4j" target="logs/crap4j.xml"/>
<log type="junit" target="logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
2

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector