user1934783
user1934783

Reputation: 691

How can I get Jenkins to ignore Checkstyle failures

Ok, I see in the Checkstyle and Jenkins documentation, that Jenkins will fail the build and not perform any more build steps after the checkstyle build step which has violations. However, I would like Jenkins to continue on with the next build step - ideas?

Upvotes: 0

Views: 598

Answers (1)

Bruno Lavit
Bruno Lavit

Reputation: 10382

If you are using Maven to build your project, the easiest solution is to add this property in your Maven CLI:

mvn clean install -Dcheckstyle.skip=true

Upvotes: 1

Related Questions