Checkstyle working in Maven, but not working in Jenkins Checkstyle working in Maven, but not working in Jenkins jenkins jenkins

Checkstyle working in Maven, but not working in Jenkins


Just found the solution.

In the project configure menu, in the "Goals and options" field you need to add 'site' without the ' characters. In my "Goals and options" field I had: clean install. This did not run checkstyle. But then I changed it to: clean install site. And now checkstyle runs!

Hope this solves your problem.

Edit:

My pom.xml has been extended with the tag:

<reporting><plugins>  <plugin>    <groupId>org.apache.maven.plugins</groupId>    <artifactId>maven-checkstyle-plugin</artifactId>    <version>2.10</version>  </plugin></plugins>

to run checkstyle. Try using only that for checkstyle and then run the project again.