Getting start with jenkin for php project.
the following steps has been configured 1)Download jenkin-1.549 2)installed php plugin checkstyle 3)Add a project sample zf2demo
build.xml in zf2 demo
<target name="phpcs" >
<exec executable="phpcs">
<arg line="--report=checkstyle
--report-file=${project.basedir}/build/logs/checkstyle.xml
--standard=Zend
${project.basedir}/*.php" />
</exec>
</target>
phpcs.xml in zf2demo/build
<ruleset name="zenddemo">
<description>Description of your coding standard</description>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<!-- ... -->
</ruleset>
The build run successfully Errors No report files were found. Configuration error?
Where to configure report file? do we need to create it manually
anything more need to configure to generate report?
In configuration part add Post-build Actions Publish Checkstyle analysis results
Checkstyle results
‘/build/checkstyle.xml’ doesn’t match anything: ‘’ exists but not ‘/build/checkstyle.xml’
how to configure these?
Edited
When run from the console