Skip to content

Using PHPCheckstyle with Jenkins

tchule edited this page Jan 6, 2017 · 1 revision

The XML generated by PHPCheckstyle is compatible with the original Checkstyle XML format.

The Violation plugin of Jenkins or Hudson is capable of reading this file and displaying and historising the results.

First you need to configure ANT to launch the check. See Using with ANT.

The script must generate a XML result file using the --format xml flag.

Then, you configure Jenkins to launch this ANT file with the phpcheckstyle target.

You also configure the violation plugin to read the generated xml file using the "checkstyle" type.

And you should see the result in the project.