Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

View Scoverage on the plugin site for more information.

This plugin allows you to publish scoverage results in Jenkins as a trend graph.



  1. Enable "Publish Scoverage Report" in Post-build Actions.
  2. Specify the location where the scoverage.xml report is generated (e.g. target/scala-2.10/scoverage-report, scoverage.xml).


step([$class: 'ScoveragePublisher', reportDir: 'target/scala-2.11/scoverage-report', reportFile: 'scoverage.xml'])



v1.4.0 (Dec 19, 2018)

  • Fix ScoverageBuildAction for Jenkins 2.150.1+

v1.3.3 (July 5, 2017)

  • Fix path regex on Windows.

v1.3.2 (Mar 10, 2017)

  • Fix HTML table alignment when coverage is close to even 100%.

v1.3.1 (Oct 3, 2016)

  • Fix path handling on Windows.

v1.3.0 (Nov 1, 2015)

  • Expose data to list view.
  • Jenkins version is updated to 1.609.1.

v1.2.2 (Sep 24, 2015)

  • Fix duplicate charts.

v1.2.1 (Sep 6, 2015)

  • Fix remote reports.
  • Jenkins version is updated to 1.596.2.

v1.2.0 (Jul 4, 2015)

  • Support workflow plugin.
  • Jenkins version is updated to 1.580.1.

v1.1.2 (Apr 13, 2015)

  • Add icon to Project and Build page.
  • Fix NPE when there's only 1 successful build.
  • Expose data to remote access API.

v1.1.1 (Jan 28, 2015)

  • Make it work on Java 8.

v1.1.0 (Jan 12, 2015)

  • Support both SBT and Maven.

v1.0.2 (Apr 29, 2014)

  • Bug fix to copy HTML and XML reports separately, verified with scoverage 0.98.2.

v1.0.1 (Apr 04, 2014)

  • Bug fix to support scoverage 0.95.9 and 0.98.0.

v1.0 (Mar 22, 2014)

  • Initial release, for scoverage 0.95.7.


  1. Unknown User (isurugiu)


    Can you provide some documentation on how the plugin should be used with jobDSL and declarative pipelines?

    I have the plugin enabled but I can't get the trend graph for the world...



  2. Unknown User (shanbin)

    Is the following step definition working for you?

    step([$class: 'ScoveragePublisher', reportDir: 'target/scala-2.11/scoverage-report', reportFile: 'scoverage.xml'])

  3. Unknown User (isurugiu)

    Thank you Shanbin,

    For some reason I mentioned declarative pipeline, what I meant was how to use it within scripted pipelines.

    When calling something like below in jobDSL and scripted pipeline I am getting 

    java.lang.NoSuchMethodError: No such DSL method 'ScoveragePublisher' 

    ScoveragePublisher([reportDir: 'target/scala-2.11/scoverage-report', reportFile: 'scoverage.xml'])

  4. Unknown User (isurugiu)

    Hi Shanbin,


    Do you have any feedback?




  5. Unknown User (hitesh_accenture)

    Can we put some parameters to "fail the build" if coverage is less than previous report or by giving certain value?