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

Add timestamps to workflow console output

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Add timestamps to workflow job output

        Attachments

          Issue Links

            Activity

            Hide
            s0undt3ch Pedro Algarvio added a comment - - edited

            As an added bonus, href link anchors so we could link to the timestamp? With proper resolution so 2 timestamps within the same second have different anchors...

            Show
            s0undt3ch Pedro Algarvio added a comment - - edited As an added bonus, href link anchors so we could link to the timestamp? With proper resolution so 2 timestamps within the same second have different anchors...
            Hide
            jglick Jesse Glick added a comment -

            As an added bonus

            Out of scope. This is just about making the existing plugin code work the same in a workflow project.

            Show
            jglick Jesse Glick added a comment - As an added bonus Out of scope. This is just about making the existing plugin code work the same in a workflow project.
            Hide
            s0undt3ch Pedro Algarvio added a comment -

            OK. Was worth a try.

            Show
            s0undt3ch Pedro Algarvio added a comment - OK. Was worth a try.
            Hide
            jglick Jesse Glick added a comment -

            Not able to get it to work so far. The implementation is rather more complicated than I expected, and it seems that ultimately ConsoleLogParserImpl is called from TimestampAnnotatorFactory and asked to match up a line number in the overall build log with an externally stored timestamp, which does not work since the plugin is not managing the total log file for the build, just selected portions.

            Show
            jglick Jesse Glick added a comment - Not able to get it to work so far. The implementation is rather more complicated than I expected, and it seems that ultimately ConsoleLogParserImpl is called from TimestampAnnotatorFactory and asked to match up a line number in the overall build log with an externally stored timestamp, which does not work since the plugin is not managing the total log file for the build, just selected portions.
            Hide
            jglick Jesse Glick added a comment -

            Found another way.

            Show
            jglick Jesse Glick added a comment - Found another way.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: StevenGBrown
            Path:
            pom.xml
            src/main/java/hudson/plugins/timestamper/TimestamperBuildWrapper.java
            src/main/java/hudson/plugins/timestamper/TimestamperOutputStream.java
            src/main/java/hudson/plugins/timestamper/io/TimestamperPaths.java
            src/main/java/hudson/plugins/timestamper/io/TimestampsWriter.java
            src/main/resources/hudson/plugins/timestamper/TimestamperBuildWrapper/config.jelly
            src/test/java/hudson/plugins/timestamper/TimestamperOutputStreamTest.java
            http://jenkins-ci.org/commit/timestamper-plugin/a19858b7b3cb07329ae4c3103b725a5ac5e228e0
            Log:
            Merge pull request #13 from jglick/SimpleBuildWrapper-JENKINS-27207

            [FIXED JENKINS-27207] Use SimpleBuildWrapper to record timestamps

            Compare: https://github.com/jenkinsci/timestamper-plugin/compare/0cef7add02d5...a19858b7b3cb

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: StevenGBrown Path: pom.xml src/main/java/hudson/plugins/timestamper/TimestamperBuildWrapper.java src/main/java/hudson/plugins/timestamper/TimestamperOutputStream.java src/main/java/hudson/plugins/timestamper/io/TimestamperPaths.java src/main/java/hudson/plugins/timestamper/io/TimestampsWriter.java src/main/resources/hudson/plugins/timestamper/TimestamperBuildWrapper/config.jelly src/test/java/hudson/plugins/timestamper/TimestamperOutputStreamTest.java http://jenkins-ci.org/commit/timestamper-plugin/a19858b7b3cb07329ae4c3103b725a5ac5e228e0 Log: Merge pull request #13 from jglick/SimpleBuildWrapper- JENKINS-27207 [FIXED JENKINS-27207] Use SimpleBuildWrapper to record timestamps Compare: https://github.com/jenkinsci/timestamper-plugin/compare/0cef7add02d5...a19858b7b3cb
            Hide
            stevengbrown Steven G Brown added a comment -

            Released with Timestamper 1.7.

            Show
            stevengbrown Steven G Brown added a comment - Released with Timestamper 1.7.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/f784c4732ee3977a01044150fb139f14bf46a11f
            Log:
            JENKINS-27207 Noting pending fix.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/f784c4732ee3977a01044150fb139f14bf46a11f Log: JENKINS-27207 Noting pending fix.

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              nharniman Nigel Harniman
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: