How to set limits for Checkstyles, findsbugs and PMD

4 views
Skip to first unread message

Ashok reddy

unread,
Feb 9, 2021, 1:06:48 PM2/9/21
to Jenkins Users
Hello Folks,

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'
            )
        }

Ullrich Hafner

unread,
Feb 10, 2021, 10:03:14 AM2/10/21
to Jenkins Users
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c349b6a4-f3bf-4464-a4bf-d84a6fc5b0f7n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages