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

Allow pipeline configuration to stop trend graphs from rendering

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None
    • jenkins 2.71
      latest plugins
    • 6.1.0

      We are using the warnings plugin in our pipeline as per the following snippet: 

      #!groovy
      
      def call() {
          junit allowEmptyResults: true, testResults: '**/artifacts/results.xml, **/artifacts/jasmine-results.xml'
          step([
              $class: 'WarningsPublisher',
              parserConfigurations: [[
                  parserName: 'PyLint',
                  pattern: '**/artifacts/pylint.out, **/artifacts/pylint_test.out'
              ], [
                  parserName: 'JSLint',
                  pattern: '**/artifacts/jslint.xml'
              ]
          ]])
      }

      It would be great if we could configure the trend graphs to not display for the pylint and jslint parsers. Maybe something like:

      #!groovy
      
      def call() {
          junit allowEmptyResults: true, testResults: '**/artifacts/results.xml, **/artifacts/jasmine-results.xml'
          step([
              $class: 'WarningsPublisher',
              parserConfigurations: [[
                  parserName: 'PyLint',
                  pattern: '**/artifacts/pylint.out, **/artifacts/pylint_test.out',
                  trendGraph: 'none'
              ], [
                  parserName: 'JSLint',
                  pattern: '**/artifacts/jslint.xml',
                  trendGraph: 'none'
              ]
          ]])
      }

       

      We care about the warnings themselves and not the trend for these two the graphs add unnecessary clutter to the job status pages:

       

       

            drulli Ulli Hafner
            jredl Jesse Redl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: