-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
Jenkins 2.138.1
Log Parser plugin 2.0
Run this pipeline:
node { stage ('1') { writeFile(file: 'rules', text: 'error /(?i)error:/\n') } stage ('2') { echo "Error: tragedy" } stage ('3') { step([$class: 'LogParserPublisher', parsingRulesPath: 'rules', useProjectRule: true]); } }
The log parser fails and aborts the pipeline you have run. The Parsed Console Output link says:
ERROR: Failed to parse console log java.lang.NullPointerException
The system log says:
log-parser plugin ERROR: Cannot parse log pipe #4 java.lang.NullPointerException at hudson.FilePath.isAbsolute(FilePath.java:308) at hudson.FilePath.resolvePathIfRelative(FilePath.java:293) at hudson.FilePath.<init>(FilePath.java:284) at hudson.plugins.logparser.LogParserPublisher.perform(LogParserPublisher.java:125) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50) at hudson.security.ACL.impersonate(ACL.java:290) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)