WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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.

Clone this wiki locally