The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

JaCoCo plugin

jacoco: Record JaCoCo coverage report

Allows to configure various aspects of the JaCoCo code coverage report. The pathes define where the various types of files can be found in the workspace, inclusions and exclusions allow to exclude certain class files. And the coverage thresholds allow to configure how much coverage is necessary to make the build green (if changing the build status is enabled).
  • buildOverBuild (optional)
    Check this to set the build status to failure if the delta coverage thresholds are violated. Delta coverage is the difference between coverage of last successful and current build.
    • Type: boolean
  • changeBuildStatus (optional)
    Check this to set the build status to unstable if coverage thresholds are violated.
    • Type: boolean
  • classPattern (optional)
    • Type: String
  • deltaBranchCoverage (optional)
    • Type: String
  • deltaClassCoverage (optional)
    • Type: String
  • deltaComplexityCoverage (optional)
    • Type: String
  • deltaInstructionCoverage (optional)
    • Type: String
  • deltaLineCoverage (optional)
    • Type: String
  • deltaMethodCoverage (optional)
    • Type: String
  • exclusionPattern (optional)
    • Type: String
  • execPattern (optional)
    • Type: String
  • inclusionPattern (optional)
    • Type: String
  • maximumBranchCoverage (optional)
    • Type: String
  • maximumClassCoverage (optional)
    • Type: String
  • maximumComplexityCoverage (optional)
    • Type: String
  • maximumInstructionCoverage (optional)
    • Type: String
  • maximumLineCoverage (optional)
    • Type: String
  • maximumMethodCoverage (optional)
    • Type: String
  • minimumBranchCoverage (optional)
    • Type: String
  • minimumClassCoverage (optional)
    • Type: String
  • minimumComplexityCoverage (optional)
    • Type: String
  • minimumInstructionCoverage (optional)
    • Type: String
  • minimumLineCoverage (optional)
    • Type: String
  • minimumMethodCoverage (optional)
    • Type: String
  • skipCopyOfSrcFiles (optional)
    Check this to disable display of source files for each line coverage
    • Type: boolean
  • sourceExclusionPattern (optional)
    • Type: String
  • sourceInclusionPattern (optional)
    • Type: String
  • sourcePattern (optional)
    • Type: String

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.