Issue Details (XML | Word | Printable)

Key: HUDSON-2137
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: akostadinov
Votes: 7
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Hudson

Annotation support on console output

Created: 28/Jul/08 06:46 AM   Updated: 05/Mar/10 08:46 PM   Resolved: 03/Mar/10 08:58 AM
Component/s: other
Affects Version/s: current
Fix Version/s: None

Environment: Platform: All, OS: All
Issue Links:
Dependency
 


 Description  « Hide

Build log could be improved by adding some capabilities to it. As a first step
adding some timestamp at regular interval (5min?).

Then here is a discussion to make the log more interactive:

http://www.nabble.com/Timestamp-on-output-td18509930.html#a18509930

Kohsuke:
I've been thinking that adding more interactivity in the console output
would be very valuable. Such as doing folding, jumping to next/prev
target (if it's output from Ant), coloring, hyperlinking from stack
trace, etc.

If we could define some kind of annotation mechanism...



Sort Order: Ascending order - Click to sort in descending order
kohsuke added a comment - 28/Jul/08 02:27 PM

It would be good to define some extensibility to annotate console output,
somewhat like how changelogs are annotated. (the console output calls for more
capability, like folding and so on. This also needs to work nicely with
incremental console output.)

This needs some serious design.


kohsuke added a comment - 19/May/09 06:34 PM

Recent recurrence of this in the users list:
http://www.nabble.com/Timestamps-in-console-log-td23624968.html


bleargh added a comment - 06/Oct/09 09:34 PM

FYI, if you're using a Unix shell (e.g. bash) to do run/control your build, you
can set up a shell prompt to display this before it executes each command in the
build...

e.g.

#!/bin/bash
PS4="[\d \t] + "
set -x
echo foo

will set the prompt to "current date" followed by "current time" and a "+" sign
(which would normally be the default).

"set -x" turns on Bash's "show me each command before you execute it" feature,
which in turn prefixes each line with PS4 (which now contains the date/time).

Admittedly this isn't as fancy as folding, coloring, or hyperlinking, but it
does get you timestamps in the build output.


scm_issue_link added a comment - 07/Feb/10 07:32 AM

Code changed in hudson
User: : kohsuke
Path:
http://hudson-ci.org/commit/27113
Log:
Creating a feature branch to work on HUDSON-2137.


scm_issue_link added a comment - 23/Feb/10 10:23 AM

Code changed in hudson
User: : kohsuke
Path:
http://hudson-ci.org/commit/27794
Log:
This tag marks the direction change in the HUDSON-2137 implementaion
where previously I was putting annotations separately from the console output
on the side (to keep the log file clean), but as I think more about it,
it's so much easier implementation wise to put them both on the same file.


scm_issue_link added a comment - 03/Mar/10 08:57 AM

Code changed in hudson
User: : kohsuke
Path:
http://hudson-ci.org/commit/28171
Log:
Initialized merge tracking via "svnmerge" with revisions "1-27113" from
https://www.dev.java.net/svn/hudson/branches/HUDSON-2137


scm_issue_link added a comment - 03/Mar/10 08:58 AM

Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/pom.xml
trunk/hudson/main/core/src/main/java/hudson/AbstractMarkupText.java
trunk/hudson/main/core/src/main/java/hudson/Extension.java
trunk/hudson/main/core/src/main/java/hudson/ExtensionList.java
trunk/hudson/main/core/src/main/java/hudson/Functions.java
trunk/hudson/main/core/src/main/java/hudson/MarkupText.java
trunk/hudson/main/core/src/main/java/hudson/model/AsyncPeriodicWork.java
trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
trunk/hudson/main/core/src/main/java/hudson/model/Run.java
trunk/hudson/main/core/src/main/java/hudson/model/StreamBuildListener.java
trunk/hudson/main/core/src/main/java/hudson/model/TaskListener.java
trunk/hudson/main/core/src/main/java/hudson/scm/ChangeLogSet.java
trunk/hudson/main/core/src/main/java/hudson/tasks/Ant.java
trunk/hudson/main/core/src/main/java/hudson/util/IOUtils.java
trunk/hudson/main/core/src/main/java/hudson/util/LogTaskListener.java
trunk/hudson/main/core/src/main/java/hudson/util/StreamTaskListener.java
trunk/hudson/main/core/src/main/resources/hudson/model/Hudson/configure.jelly
trunk/hudson/main/core/src/main/resources/hudson/model/Run/console.jelly
trunk/hudson/main/core/src/main/resources/lib/hudson/progressiveText.jelly
trunk/hudson/main/core/src/test/java/hudson/MarkupTextTest.java
trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/SplittableBuildListener.java
trunk/hudson/main/remoting/src/main/java/hudson/remoting/ObjectInputStreamEx.java
trunk/hudson/main/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java
trunk/hudson/main/test/src/main/java/org/jvnet/hudson/test/TestEnvironment.java
trunk/hudson/main/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
trunk/hudson/main/test/src/test/groovy/hudson/model/AbstractBuildTest.groovy
trunk/hudson/main/test/src/test/java/hudson/maven/MavenBuildTest.java
trunk/hudson/main/test/src/test/java/hudson/maven/MavenEmptyModuleTest.java
trunk/hudson/main/test/src/test/java/hudson/maven/MavenMultiModuleTest.java
trunk/hudson/main/test/src/test/java/hudson/maven/MavenOptsTest.java
trunk/hudson/main/test/src/test/java/hudson/maven/MavenProjectTest.java
trunk/hudson/main/test/src/test/java/hudson/maven/MavenSnapshotTriggerTest.java
trunk/hudson/main/test/src/test/java/hudson/model/AbstractProjectTest.java
trunk/hudson/main/test/src/test/java/hudson/model/FreeStyleProjectTest.java
trunk/hudson/main/test/src/test/java/hudson/tools/JDKInstallerTest.java
trunk/hudson/main/war/resources/scripts/hudson-behavior.js
trunk/hudson/main/war/resources/scripts/prototype.js
trunk/www/changelog.html
http://hudson-ci.org/commit/28173
Log:
[FIXED HUDSON-2137]