[JIRA] (JENKINS-60169) Multi-line build log indication of Build Failure Analyzer plugin is not matching text

8 views
Skip to first unread message

gajanan.forums@gmail.com (JIRA)

unread,
Nov 14, 2019, 6:30:04 AM11/14/19
to jenkinsc...@googlegroups.com
Gajanan Mahajan created an issue
 
Jenkins / Bug JENKINS-60169
Multi-line build log indication of Build Failure Analyzer plugin is not matching text
Issue Type: Bug Bug
Assignee: Tomas Westling
Components: build-failure-analyzer-plugin
Created: 2019-11-14 11:29
Priority: Critical Critical
Reporter: Gajanan Mahajan

I've following text which spans across lines and which I want to highlight using `Build Failure Analyzer` plugin -

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project RuleEngineImpl: Compilation failure: Compilation failure: 
 [ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/Source/RuleEngineManagement/RuleEngineImpl/src/main/java/com/ruleengine/impl/manager/RuleManagerImpl.java:[26,58] package com.test.ruleengine.api.persistence does not exist
 [ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/RuleEngineManagement/RuleEngineImpl/src/main/java/com/test/test/ruleengine/impl/manager/RuleManagerImpl.java:[41,17] cannot find symbol
 [ERROR] symbol: class RulePersistanceManager
 [ERROR] location: class com.ruleengine.impl.manager.RuleManagerImpl
 [ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/test/Source/RuleEngineManagement/RuleEngineImpl/src/main/java/com/test/test/ruleengine/impl/manager/RuleManagerImpl.java:[55,47] cannot find symbol
 [ERROR] symbol: class IRulePersistance
 [ERROR] location: class com.test.ruleengine.impl.manager.RuleManagerImpl
 [ERROR] /C:/Jenkins/workspace/RedmineAndReviewboardProject/SVNCheckout/test/Source/RuleEngineManagement/RuleEngineImpl/src/main/java/com/test/test/ruleengine/impl/manager/RuleManagerImpl.java:[61,33] cannot find symbol
 [ERROR] symbol: class IRulePersistance
 [ERROR] location: class com.test.ruleengine.impl.manager.RuleManagerImpl
 [ERROR] -> [Help 1]
 [ERROR] 
 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

Hence used `Multi-line build log indication` and in Pattern field added following regex -

^\[ERROR\] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin((.|\n)*)\[ERROR\] To see the full stack trace of the errors, re-run Maven with the -e switch.*

Apart from above regex, I also tried other regex which are discussed here - https://stackoverflow.com/questions/58854098/regular-expression-for-multiline-text-match

But instead of highlighting all content it highlights only first line i.e 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project RuleEngineImpl: Compilation failure: Compilation failure:

 

Looks multi-line failure higlighting is not supported, also there is no document which help to understand `Multi-line build indication` apart from name itself.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

gajanan.forums@gmail.com (JIRA)

unread,
Nov 14, 2019, 6:31:02 AM11/14/19
to jenkinsc...@googlegroups.com

rsandell@cloudbees.com (JIRA)

unread,
Nov 18, 2019, 5:33:03 AM11/18/19
to jenkinsc...@googlegroups.com

david.simmons@analog.com (JIRA)

unread,
Nov 27, 2019, 12:25:03 PM11/27/19
to jenkinsc...@googlegroups.com

I am experiencing the same thing. No matter how liberal the regex, my match is always a single line from the build log. It's as if the multiline switch doesn't do anything at all.

Reply all
Reply to author
Forward
0 new messages