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

logs for individual workflow steps do not contain timestamps

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • jenkins 1.609.2
      workflow 1.10-beta1
      timestamper 1.7.2

      Consider the workflow that is stored in an SCM

          node('master') {
              wrap([$class: 'TimestamperBuildWrapper']) {
                  sh 'echo I woz here'
              }
          }
      

      if you view ${JOB_URL}/${BUILD_ID}/console

      then you will see timestamps for the echo step but not the SCM checkout.

      However if you view the logs for the individual step ${JOB_URL}/${BUILD_ID}/execution/node/3/log/ then the output is shown without any timestamps. This means that to check performance of an individual step you need to look at all of the logs which is a performance issue - and not user friendly.

          [JENKINS-30143] logs for individual workflow steps do not contain timestamps

          James Nord created issue -
          James Nord made changes -
          Assignee Original: Steven G Brown [ stevengbrown ]

          Jesse Glick added a comment -

          you will see timestamps for the echo step but not the SCM checkout

          For a script stored in SCM, the checkout happens before you run the wrap step.

          if you view the logs for the individual step then the output is shown without any timestamps

          Please check this again, it should be amending the log of the individual step, so long as it is within wrap.

          Jesse Glick added a comment - you will see timestamps for the echo step but not the SCM checkout For a script stored in SCM, the checkout happens before you run the wrap step. if you view the logs for the individual step then the output is shown without any timestamps Please check this again, it should be amending the log of the individual step, so long as it is within wrap .
          James Nord made changes -
          Attachment New: screenshot-1.png [ 30589 ]
          James Nord made changes -
          Attachment New: screenshot-2.png [ 30590 ]

          James Nord added a comment -

          no - issue is still present and verifiable on workflow 1.10.0

          See attached screenshots of the (job/build#/console containing timestamps) and the (per step execution log)

          James Nord added a comment - no - issue is still present and verifiable on workflow 1.10.0 See attached screenshots of the (job/build#/console containing timestamps) and the (per step execution log)

          Jesse Glick added a comment -

          Strange, would need to debug why that is happening.

          Jesse Glick added a comment - Strange, would need to debug why that is happening.

          Andrew Bayer added a comment -

          Yeah, I noticed that with multibranch.

          Andrew Bayer added a comment - Yeah, I noticed that with multibranch.

          Andrew Bayer added a comment -

          Verified it's happening, I think it's something different with the Timestamper plugin behavior for step executions vs runs as a whole. I'm digging a bit.

          Andrew Bayer added a comment - Verified it's happening, I think it's something different with the Timestamper plugin behavior for step executions vs runs as a whole. I'm digging a bit.

          Andrew Bayer added a comment - Is it as simple as https://github.com/jenkinsci/timestamper-plugin/blob/master/src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotator.java#L77-L79?

            stevengbrown Steven G Brown
            teilo James Nord
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: