Below is the my pipeline script, How can I set the warnings limit for check style warning
stage('Build') {
options {
timeout(time: 30, unit: "MINUTES")
}
steps {
withMaven(maven: 'Maven-3.5.2') {
sh 'mvn clean install'
}
}
}
}
post {
always {
junit testResults: '**/target/surefire-reports/TEST-*.xml'
recordIssues enabledForFailure: true, tool: checkStyle()
recordIssues enabledForFailure: true, tool: spotBugs()
recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml')
jacoco(
exclusionPattern: '**/*Test*.class',
inclusionPattern: '**/*.class',
sourceInclusionPattern: '**/*.java'
)
}