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

No way to check results of Log Parser Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • log-parser-plugin
    • None

      Jenkins 1.651.3
      Log Parser Plugin 2.0
      Pipeline 2.4

      Log parser plugin does not throw an exception after detecting errors in console output.
      The plugin fails the build but there is no way to know in runtime if it was failed.
       

      try {
          step([$class: 'LogParserPublisher', 
              failBuildOnError: true, 
              parsingRulesPath: 'blabla.txt', 
              showGraphs: true, 
              unstableOnWarning: true, 
              useProjectRule: false])
      } catch(e) {
          echo 'Check console output for errors.'
      } finally {
          echo 'finally'
      }
      

      So the output 'Check console output for errors.' is not seen. At the same time 'finally' block is executed and output is seen in console log.

            zalimgandhera ahmed daniel
            krlf Kirill Fedoseev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: