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

Timestamper plugin does not produce timestamps in BlueOcean UI

      I am using the Timestamper plugin ( https://wiki.jenkins.io/display/JENKINS/Timestamper ) with something like:

       

        
      pipeline {
        agent any;
        stages {
          stage("Stage 1") {
            steps {
              timestamps {
                sh "echo Do something"
              }
            }
          }
        }
      }

      If I look in the Blue Ocean UI, the timestamps do not appear in the output
      but if I look in the classic UI, I do see the timestamps
      Any ideas how to get the timestamps to appear in the Blue Ocean UI?

          [JENKINS-52938] Timestamper plugin does not produce timestamps in BlueOcean UI

          From michaelneale on gitter:

          @rodrigc not sure what conclusion with that - timestamp uses the log annotators thing which doesn’t work with api style logs that blue ocean uses
          @sophistifunk @vivek do you remember what happened with timestamps?
          @rodrigc I think blue ocean shoudl just be changed to use the time metadata which is probably on the log always (someone shoudl have a crack at that). Vs the timestamp wrapper step

          Craig Rodrigues added a comment - From michaelneale on gitter: @rodrigc not sure what conclusion with that - timestamp uses the log annotators thing which doesn’t work with api style logs that blue ocean uses @sophistifunk @vivek do you remember what happened with timestamps? @rodrigc I think blue ocean shoudl just be changed to use the time metadata which is probably on the log always (someone shoudl have a crack at that). Vs the timestamp wrapper step

          Jan Matèrne added a comment -

          Wanted to create a new issue, but found this. Also found JENKINS-45108 which seems to be the same and it is resolved on 2017-11-05, but is still open (in my environment).

          Used the Docker image jenkinsci/blueocean:1.8.3
          Jenkins-Version: 2.138.1
          BlueOcean: 1.8.3

           

          Jan Matèrne added a comment - Wanted to create a new issue, but found this. Also found JENKINS-45108 which seems to be the same and it is resolved on 2017-11-05, but is still open (in my environment). Used the Docker image jenkinsci/blueocean:1.8.3 Jenkins-Version: 2.138.1 BlueOcean: 1.8.3  

          It can be replicated in this environment

          Jenkins Core 2.159
          BO 1.10.1
          Timestamper 1.8.10

          If you configure it as an option it would also fail

          pipeline {
            agent any
            options{
                timestamps()
            }
            stages {
              stage("Stage 1") {
                steps {
                  sh "echo command"
                }
              }
            }
          }
          

          Ivan Fernandez Calvo added a comment - It can be replicated in this environment Jenkins Core 2.159 BO 1.10.1 Timestamper 1.8.10 If you configure it as an option it would also fail pipeline { agent any options{ timestamps() } stages { stage( "Stage 1" ) { steps { sh "echo command" } } } }

          Vlad Aginsky added a comment -

          it is  sad to se 2+ years bug, basic as it is, still not resolved.

          Vlad Aginsky added a comment - it is  sad to se 2+ years bug, basic as it is, still not resolved.

            oleg_nenashev Oleg Nenashev
            rodrigc Craig Rodrigues
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: