I have all php tools set up for Jenkins php projects. I set up "Publish Clover Coverage Report" for "Post-build actions", that is
Clover report directory - /build/logs
Clover report file name - clover.xml
I can indeed browser /build/logs and see clover.xml. The whole path is -
But when I execute Jenkins job I get following message -
Clover xml file does not exist in: /build/logs called: clover.xml and will not be copied to: /var/lib/jenkins/jobs/php job 1/builds/2012-01-02_01-11-32/clover.xml
Could not find '/build/logs/clover.xml'. Did you generate the XML report for Clover?
Why is Jenkins not able to see my clover.xml file?
If you are using ant as your build tool that jenkins triggers, then in your build.xml you might need to specify arguments for phpunit command. Something like..
<exec executable="phpunit" failonerror="true">
<arg line="--coverage-clover ${basedir}/build/logs/clover.xml
--coverage-html ${basedir}/build/logs/
."/>
</exec>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With