| 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. |