I have to use checkStyle MAVEN plugin through pom.xml with Jenkins for a java project and I want to suppress some rules such as the line length check. I created a checkstyle-suppressions.xml file in which a put the check to suppress and placed it in the same directory as pom.xml and sunchecks.xml. Everything is working fine with the invocation of command mvn clean verify site directly from command line but when I try the same thing via the Jenkins build step it seems that Jenkins is ignoring suppressing the rule.
I’m using MAVEN 3.9.0, maven-checkstyle-plugin 3.3.0 and Jenkins 2.387.3
checkstyle-suppressions.xml :<?xml version="1.0" encoding="UTF-8"?>
Part of pom.xml for checkstyle plugin:
Any idea ?