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

Log Parser Plugin does not parse Pipeline console outputs

      Versions:

      • Jenkins: 1.644
      • Workflow plugins: 1.12
      • Log Parser Plugin: 2.0

      Issue:
      I have the following workflow job:

      node {
         step([$class: 'LogParserPublisher', parsingRulesPath: '/var/lib/jenkins/jenkins-rule-logparser', useProjectRule: false])
         echo 'Error: oh no'
      }
      

      and it produces the following console output:

      Started by user anonymous
      [Workflow] Allocate node : Start
      Running on master in /var/lib/jenkins/jobs/ntsvc-monitor-dev/workspace
      [Workflow] node {
      [Workflow] step
      [Workflow] echo
      Error: oh noes
      [Workflow] } //node
      [Workflow] Allocate node : End
      [Workflow] End of Workflow
      Finished: SUCCESS
      

      The log parser config (/var/lib/jenkins/jenkins-rule-logparser) is:

      error /Error/
      

      The parsed log view shows only:

      Started by user anonymous
      [Workflow] Allocate node : Start
      Running on master in /var/lib/jenkins/jobs/ntsvc-monitor-dev/workspace
      [Workflow] node {
      

      For a FreeStyle job, the same echo message and log parser rules, results in fully parsed log and the error message is detected/colored red. See attachments for views of parsed log screens.

      The Jenkins system log does not contain errors for the jobs or the Log Parse plugin... indeed, it contains success messages from the Log Parse plugin.

          [JENKINS-32866] Log Parser Plugin does not parse Pipeline console outputs

          Jeff Burke created issue -
          Jeff Burke made changes -
          Attachment New: parsed-freestyle.png [ 31823 ]
          Attachment New: parsed-workflow.png [ 31824 ]
          Jeff Burke made changes -
          Description Original: Versions:
          * Jenkins: 1.644
          * Workflow plugins: 1.12
          * Log Parser Plugin: 2.0

          Issue:
          I have the following workflow job:
          {code:java}
          node {
             step([$class: 'LogParserPublisher', parsingRulesPath: '/var/lib/jenkins/jenkins-rule-logparser', useProjectRule: false])
             echo 'Error: oh no'
          }
          {code}

          and it produces the following console output:
          {noformat}
          Started by user anonymous
          [Workflow] Allocate node : Start
          Running on master in /var/lib/jenkins/jobs/ntsvc-monitor-dev/workspace
          [Workflow] node {
          [Workflow] step
          [Workflow] echo
          Error: oh noes
          [Workflow] } //node
          [Workflow] Allocate node : End
          [Workflow] End of Workflow
          Finished: SUCCESS
          {noformat}

          The log parser config (/var/lib/jenkins/jenkins-rule-logparser) is:
          {noformat}
          error /Error/
          {noformat}

          The parsed log view shows only:
          {noformat}
          Started by user anonymous
          [Workflow] Allocate node : Start
          Running on master in /var/lib/jenkins/jobs/ntsvc-monitor-dev/workspace
          [Workflow] node {
          {noformat}

          For a FreeStyle job, the same echo message and log parser rules, results in fully parsed log and the error message is detected/colored red. See attachments for views of parsed log screens.

          New: Versions:
          * Jenkins: 1.644
          * Workflow plugins: 1.12
          * Log Parser Plugin: 2.0

          Issue:
          I have the following workflow job:
          {code:java}
          node {
             step([$class: 'LogParserPublisher', parsingRulesPath: '/var/lib/jenkins/jenkins-rule-logparser', useProjectRule: false])
             echo 'Error: oh no'
          }
          {code}

          and it produces the following console output:
          {noformat}
          Started by user anonymous
          [Workflow] Allocate node : Start
          Running on master in /var/lib/jenkins/jobs/ntsvc-monitor-dev/workspace
          [Workflow] node {
          [Workflow] step
          [Workflow] echo
          Error: oh noes
          [Workflow] } //node
          [Workflow] Allocate node : End
          [Workflow] End of Workflow
          Finished: SUCCESS
          {noformat}

          The log parser config (/var/lib/jenkins/jenkins-rule-logparser) is:
          {noformat}
          error /Error/
          {noformat}

          The parsed log view shows only:
          {noformat}
          Started by user anonymous
          [Workflow] Allocate node : Start
          Running on master in /var/lib/jenkins/jobs/ntsvc-monitor-dev/workspace
          [Workflow] node {
          {noformat}

          For a FreeStyle job, the same echo message and log parser rules, results in fully parsed log and the error message is detected/colored red. See attachments for views of parsed log screens.

          The Jenkins system log does not contain errors for the jobs or the Log Parse plugin... indeed, it contains success messages from the Log Parse plugin.

          Manuel Recena Soto made changes -
          Labels New: pipeline
          Manuel Recena Soto made changes -
          Summary Original: Log Parser Plugin does not parse workflow console outputs New: Log Parser Plugin does not parse Pipeline console outputs
          Jesse Glick made changes -
          Labels Original: pipeline New: workflow
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168563 ] New: JNJira + In-Review [ 183178 ]
          Andrew Bayer made changes -
          Labels Original: workflow New: pipeline workflow
          Andrew Bayer made changes -
          Labels Original: pipeline workflow New: pipeline
          Prince Raj Kumar made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Martin Reinhardt made changes -
          Assignee Original: Manuel Recena Soto [ recena ] New: Martin Reinhardt [ mreinhardt ]

            mreinhardt Martin Reinhardt
            potatopankakes Jeff Burke
            Votes:
            13 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: