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

Return useful data to pipeline callers

XMLWordPrintable

    • 5.0.0-beta2

      Right now calling `warnings(...)` from inside of my non-declarative pipeline returns `null`. I would like to be able to get useful information from the warnings plugin such as the report URL, how many warnings there were of different severities, and if the warnings exceeded any thresholds.

      Is there maybe a setting I'm missing?

      warnings(
              canComputeNew: false,
              canResolveRelativePaths: false,
              canRunOnFailed: true,
              categoriesPattern: '',
              defaultEncoding: '',
              excludePattern: '',
              healthy: '',
              includePattern: '',
              messagesPattern: '',
              parserConfigurations: [
                [parserName: 'JSLint', pattern: 'tmp/jslint.xml']
              ],
              unHealthy: '',
              unstableTotalAll: '0'
            )
      

            drulli Ulli Hafner
            stevednd Steve V
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: