How to set limits for Checkstyles, findsbugs and PMD

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set limits for Checkstyles, findsbugs and PMD

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c349b6a4-f3bf-4464-a4bf-d84a6fc5b0f7n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to set limits for Checkstyles, findsbugs and PMD

Ulli Hafner
See quality gates:
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md


Am 09.02.2021 um 19:06 schrieb Ashok reddy <[hidden email]>:

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c349b6a4-f3bf-4464-a4bf-d84a6fc5b0f7n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/992E82E5-51E7-40D6-96B0-EAFB3F7EAEB7%40gmail.com.