You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-6034] Console log contains junk in Hudson 1.352 #19453
Reproducible in other jobs. Seems that there is a fixed prefix which is dumped before any Ant target:
esc [ 8 m h a : A A A A Y B + L C
A A A A A A A A A B b 8 5 a B t
b i I Q T 6 j N K U 4 P 0 + v J
L E 4 u 1 g v P j G v R M 8 x r
y Q k s S g 9 t c Q v v y T V v
q N r / s + V l 9 u Y G B g q i
h i k o K q T 8 / O K 8 3 N S 9
Z w h N E g h A w Q w g h Q W A
A D R O O u m X Q A A A A = = esc
[ 0 m
which resembles a VT-102 control sequence.
Reproducible in other jobs. Seems that there is a fixed prefix which is dumped before any Ant target:
esc [ 8 m h a : A A A A Y B + L C
A A A A A A A A A B b 8 5 a B t
b i I Q T 6 j N K U 4 P 0 + v J
L E 4 u 1 g v P j G v R M 8 x r
y Q k s S g 9 t c Q v v y T V v
q N r / s + V l 9 u Y G B g q i
h i k o K q T 8 / O K 8 3 N S 9
Z w h N E g h A w Q w g h Q W A
A D R O O u m X Q A A A A = = esc
[ 0 m
I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you.
In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp)
Comment below lines:
// Prevent jelly from flushing stream so Content-Length header can be added afterwards
FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req));
getLogText().writeLogTo(0,out);
out.close();
***********************************************
Then add below lines:
Writer w = rsp.getCompressedWriter(req);
getLogText().writeHtmlTo(0,w);
w.close();
************************************************
Hi All,
I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you.
In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp)
Comment below lines:
// Prevent jelly from flushing stream so Content-Length header can be added afterwards
FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req));
getLogText().writeLogTo(0,out);
out.close();
***********************************************
Then add below lines:
Writer w = rsp.getCompressedWriter(req);
getLogText().writeHtmlTo(0,w);
w.close();
Activity
jenkins-infra-bot commentedon Mar 23, 2010
Raw content of original comment:
Note that the above links are now dead because the VM crashed (OOME?) just moments after I noticed this problem.
jenkins-infra-bot commentedon Mar 23, 2010
Raw content of original comment:
Reproducible in other jobs. Seems that there is a fixed prefix which is dumped before any Ant target:
which resembles a VT-102 control sequence.
jenkins-infra-bot commentedon Mar 23, 2010
Raw content of original comment:
ConsoleNote is responsible, I guess.
jenkins-infra-bot commentedon Mar 23, 2010
Raw content of original comment:
Junk also appears before first Ant target name in /console, e.g.:
jenkins-infra-bot commentedon Mar 31, 2010
starfury:
Raw content of original comment:
yesterday I opened a similiar - maybe duplicate - issue:
JENKINS-6120jenkins-infra-bot commentedon Mar 31, 2010
Raw content of original comment:
Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/src/main/java/hudson/model/Run.java
trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
trunk/www/changelog.html
http://jenkins-ci.org/commit/29653
Log:
[FIXED JENKINS-6034] in 1.354.
jenkins-infra-bot commentedon Apr 15, 2010
voorth:
Raw content of original comment:
1.354 gives his issue as fixed, but I'm still getting the same garbage string in the ant target lines:
jenkins-infra-bot commentedon Apr 15, 2010
Raw content of original comment:
Indeed this is not fixed in 1.354, e.g.
jenkins-infra-bot commentedon Apr 15, 2010
starfury:
Raw content of original comment:
yes, I can confirm that also. garbage still existing.
jenkins-infra-bot commentedon Apr 27, 2010
voorth:
Raw content of original comment:
Still present in 1.355...
jenkins-infra-bot commentedon Jul 2, 2010
kalpanab:
Raw content of original comment:
Hi All,
I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you.
In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp)
Comment below lines:
// Prevent jelly from flushing stream so Content-Length header can be added afterwards
FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req));
getLogText().writeLogTo(0,out);
out.close();
***********************************************
Then add below lines:
Writer w = rsp.getCompressedWriter(req);
getLogText().writeHtmlTo(0,w);
w.close();
************************************************
jenkins-infra-bot commentedon Jul 5, 2010
Raw content of original comment:
Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java
trunk/hudson/main/core/src/main/java/hudson/console/ConsoleNote.java
trunk/hudson/main/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java
trunk/hudson/main/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java
trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
trunk/www/changelog.html
http://jenkins-ci.org/commit/32514
Log:
[FIXED JENKINS-6034] plain text console output needs to filter out inline console annotations
jenkins-infra-bot commentedon Nov 24, 2025
[Original
is_duplicated_byfrom Jira: JENKINS-6120]