목차

Jenkins Jacoco Plugin

설정

Pipeline

steps {
    jacoco execPattern: '**/build/jacoco/*.exec',
            classPattern: '**/build/classes/java,**/build/classes/groovy',
            inclusionPattern: '**/*.class',
            exclusionPattern: '**/test/**,**/integrationTest**,**/*Test.class,**/Q*.class,**/config/**/*.class',
            sourcePattern: '**/src/main/java',
            sourceInclusionPattern: '**/*.java',
            changeBuildStatus: true,
            maximumBranchCoverage: params.MINIMUM_BRANCH_COVERAGE,
            minimumBranchCoverage: params.MINIMUM_BRANCH_COVERAGE,
            maximumLineCoverage: params.MINIMUM_LINE_COVERAGE,
            minimumLineCoverage: params.MINIMUM_LINE_COVERAGE
}