Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75966

Make coverage plugin optional in pipeline-maven-plugin

XMLWordPrintable

    • 1559.vb_03b_1b_f1a_25c

      Starting with pipeline-maven-plugin version 1556.vd9051b_d6ef5d the recordCoverage feature uses the Coverage Plugin for tracking coverage rather than the Jacoco plugin. However, this update also introduced a mandatory dependency, automatically installing the Coverage Plugin.

      It would be better if the Coverage Plugin were made optional, allowing users who do not need this feature—or who rely on alternative coverage solutions—to avoid installing an additional, unnecessary plugin

      Reproduction Steps:

      1. Clone the pipeline-maven-plugin repository.
      2. Start the plugin in development mode using:
        mvn hpi:run
      3. In the Jenkins instance, navigate to Manage Jenkins → Plugin Manager → Installed Plugins.
      4. Observe that the Coverage Plugin is installed by default as a dependency.

      Expected Behavior:

      The Coverage Plugin should not be installed by default. It should be optional; users should be able to install the Coverage Plugin themselves only if they wish to generate coverage reports.

            vwagh Vishal
            vwagh Vishal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: