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

Display one aggregation trend chart independently how often *Issues steps are used

      Please make the steps recordIssues and publishIssues configurable in the way that Jenkins will display one aggregation trend chart and no scanner-specific trend chart on the Jenkins job status page independent how often the steps are configured/called.

       

      For example:

      For the publishIssues step you could add the option like this:

      publishIssues trendChartType: 'AGGREGATION_ONLY'
      

      This option would allow me using multipe publishIssues steps.

      Instead of this:

      recordIssues aggregatingResults: true
      

      you could align it with publishIssues and add the same options trendChartType

      What do you think?

          [JENKINS-61196] Display one aggregation trend chart independently how often *Issues steps are used

          Ulli Hafner added a comment -

          You can already specify different quality gates for different tools. Just use one recordIssues step for each tool. Or what exactly are you trying to achieve?

          Ulli Hafner added a comment - You can already specify different quality gates for different tools. Just use one recordIssues step for each tool. Or what exactly are you trying to achieve?

          R. Fitzner added a comment - - edited

          I have configured my pipeline in the way that it uses scanForIssues step for each tool independently (e.g. java(), javaDoc(), taskScanner()).

          At the end there is a pipeline stage which always posts the results (depending on the results of the previously Gradle task and if a scan has been done) like this:

          publishIssues issues: [java, javaDoc, ...]
          

          Here I can configure qualityGates which will affect all tools.

          I could configure recordIssues or scanForIssues plus publishIssues for each tool scan, but then on the main status page of a Jenkins job, Jenkins shows multiple trend charts for each tool separately.
          For the publishIssues step there is no option like this:

          publishIssues trendChartType: 'AGGREGATION_ONLY'
          

          This option would allow me using multipe publishIssues steps.

          Only for recordIssues I can do that:

          recordIssues aggregatingResults: true
          

          But using recordIssues I cannot suppress showing all other trend charts of each tool scan.

          In the end this is the only option I have found that the status page shows the aggregation trend chart only!

          I also noticed this has a bad side effect when it comes to dashbords. Using this solution ends up in the fact that I can display only the aggregated values, not separated by tools.

          R. Fitzner added a comment - - edited I have configured my pipeline in the way that it uses scanForIssues step for each tool independently (e.g. java(), javaDoc(), taskScanner()). At the end there is a pipeline stage which always posts the results (depending on the results of the previously Gradle task and if a scan has been done) like this: publishIssues issues: [java, javaDoc, ...] Here I can configure qualityGates which will affect all tools . I could configure recordIssues  or scanForIssues plus publishIssues for each tool scan, but then on the main status page of a Jenkins job, Jenkins shows multiple trend charts for each tool separately . For the publishIssues step there is no option like this: publishIssues trendChartType: 'AGGREGATION_ONLY' This option would allow me using multipe publishIssues steps. Only for recordIssues I can do that: recordIssues aggregatingResults: true But using recordIssues I cannot suppress showing all other trend charts of each tool scan. In the end this is the only option I have found that the status page shows the aggregation trend chart only! I also noticed this has a bad side effect when it comes to dashbords. Using this solution ends up in the fact that I can display only the aggregated values, not separated by tools.

          Ulli Hafner added a comment - - edited

          I see. Then please rework the issue description and title so it is clear what actually should be done. Adding the trendChartType property to publishIssues should not be hard...

          Ulli Hafner added a comment - - edited I see. Then please rework the issue description and title so it is clear what actually should be done. Adding the trendChartType property to publishIssues should not be hard...

          R. Fitzner added a comment -

          updated description

          R. Fitzner added a comment - updated description

          R. Fitzner added a comment - - edited

          Thank you for implementing this request.

          But after installing version 8.9.0 the AGGREGATION_ONLY is neither selectable in a freestyle job nor in the pipeline syntax.

          Can you please verify this?

          R. Fitzner added a comment - - edited Thank you for implementing this request. But after installing version 8.9.0 the AGGREGATION_ONLY is neither selectable in a freestyle job nor in the pipeline syntax. Can you please verify this?

          Ulli Hafner added a comment -

          Ups, yes I forgot to add it to the UI model. Followup: JENKINS-64830

          Ulli Hafner added a comment - Ups, yes I forgot to add it to the UI model. Followup: JENKINS-64830

            drulli Ulli Hafner
            rf R. Fitzner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: