Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: email-ext-plugin
-
Labels:None
-
Similar Issues:
Description
Since Hudson 1.349, console notes can be embedded into the console output file. These notes are stored in an encoded format and are intended to be stripped out before the console is displayed.
The build log regex functionality, since it reads from the console output file directly, puts these encoded notes into the email.
These console notes can be stripped out by calling ConsoleNote.removeNotes(String) (introduced in Hudson 1.350) on each line as the BuildLogRegexContent class reads it from the log.
Attachments
Issue Links
- is duplicated by
-
JENKINS-5970 Provide an option to include or exclude console output annotations
-
- Closed
-
- relates to
-
JENKINS-42536 Logstash output contains color annotations ([8mha...)
-
- Closed
-
Code changed in hudson
User: : ashlux
Path:
trunk/hudson/plugins/email-ext/src/main/java/hudson/plugins/emailext/plugins/content/BuildLogRegexContent.java
trunk/hudson/plugins/email-ext/src/test/java/hudson/plugins/emailext/plugins/content/BuildLogRegexContentTest.java
http://jenkins-ci.org/commit/34745
Log:
[FIXED JENKINS-7402] Update BUILD_LOG_REGEX to properly handle console notes. Emails were being sent out with garbage because of console notes. This fix requires Hudson 1.350 and newer.