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

Timestamper plugin does not produce timestamps in BlueOcean UI

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          rodrigc Craig Rodrigues created issue -
          rodrigc Craig Rodrigues made changes -
          Field Original Value New Value
          Component/s timestamper-plugin [ 15749 ]
          Hide
          rodrigc Craig Rodrigues added a comment -

          From Michael Neale 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

          Show
          rodrigc Craig Rodrigues added a comment - From Michael Neale 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
          Hide
          janmaterne 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

           

          Show
          janmaterne 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  
          Hide
          ifernandezcalvo 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"
                }
              }
            }
          }
          
          Show
          ifernandezcalvo 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" } } } }
          vladichko Vlad Aginsky made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          Hide
          vladichko Vlad Aginsky added a comment -

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

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

            People

            Assignee:
            oleg_nenashev Oleg Nenashev
            Reporter:
            rodrigc Craig Rodrigues
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: