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