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

"Option" to disable every publishers/reporters

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None

      Hello,

      In our main build, we build in parallel with many concerns in mind: one branch (of the parallel builds) is the main build where we leave everything enabled, and we have dedicated branches for coverage, release checking, etc.

      As we already do the reporting on the main branch, we disable many reporters on the non-main branches. Currently, it's a bit cumbersome to do this as we have to add as many reporters as there are. Also, if new ones get added in the future, we'll have to add them too to avoid any spurious reporting to starting occurring.

      So, it would be nice to have an option to reverse the default logic: include no reporter at all by default, and then let me specify the ones I need.

      Something like:

      withMaven(...',
                options: ['disableAll: true', openTasksPublisher(disabled: false)]) {
          sh 'mvn ...'
      }
      

      To get only the Tasks publisher report to be created.

      Thanks!

            alobato Alvaro Lobato
            batmat Baptiste Mathus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: