Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2137

Annotation support on console output

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:
      Show 5 results

      Description

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

        Attachments

          Issue Links

            Activity

            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

            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.

            Show
            kohsuke Kohsuke Kawaguchi added a comment - 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.
            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

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

            Show
            kohsuke Kohsuke Kawaguchi added a comment - Recent recurrence of this in the users list: http://www.nabble.com/Timestamps-in-console-log-td23624968.html
            Hide
            bleargh bleargh added a comment -

            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.

            Show
            bleargh bleargh added a comment - 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.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

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

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: http://jenkins-ci.org/commit/27113 Log: Creating a feature branch to work on JENKINS-2137 .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : kohsuke
            Path:
            http://jenkins-ci.org/commit/27794
            Log:
            This tag marks the direction change in the JENKINS-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.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: http://jenkins-ci.org/commit/27794 Log: This tag marks the direction change in the JENKINS-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.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

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

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: http://jenkins-ci.org/commit/28171 Log: Initialized merge tracking via "svnmerge" with revisions "1-27113" from https://www.dev.java.net/svn/hudson/branches/JENKINS-2137
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            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://jenkins-ci.org/commit/28173
            Log:
            [FIXED JENKINS-2137]

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - 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://jenkins-ci.org/commit/28173 Log: [FIXED JENKINS-2137]

              People

              • Assignee:
                Unassigned
                Reporter:
                akostadinov akostadinov
              • Votes:
                7 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: