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

Coloring breaks timestamp output in Declarative Pipeline (NOT Blueocean)

      The next timestamp after a coloured line appears with the same color as the line and is not formatted.

      Relevant parts of Jenkinsfile

      pipeline {
          options {
              withAWS(region: 'eu-west-1', roleAccount: acme, credentials: 'acme')
              timeout(time: 20, unit: 'MINUTES')
              timestamps()
              ansiColor('xterm')
          }
      
              stage('Build') {
                  steps {
                      sh '''#!/bin/sh -eux
      
                          docker build --pull --tag "$GIT_COMMIT" .
                      '''
                  }
              }
      }
      
      

          [JENKINS-58215] Coloring breaks timestamp output in Declarative Pipeline (NOT Blueocean)

          dnusbaumjglick maybe this is related to the ConsoleAnnotator change?

          Jakub Bochenski added a comment - dnusbaum jglick maybe this is related to the ConsoleAnnotator change?

          Jesse Glick added a comment -

          Probably. Maybe due to multiline (unterminated) ANSI sequences? Would be helpful to have a script to reproduce from scratch, e.g. using echo with format.

          Jesse Glick added a comment - Probably. Maybe due to multiline (unterminated) ANSI sequences? Would be helpful to have a script to reproduce from scratch, e.g. using echo with format.

          Basil Crow added a comment -

          I think this is a duplicate of JENKINS-58102, which was fixed in Timestamper 1.10. jbochenski, can you please try 1.10 or later and confirm that the issue is resolved?

          Basil Crow added a comment - I think this is a duplicate of JENKINS-58102 , which was fixed in Timestamper 1.10. jbochenski , can you please try 1.10 or later and confirm that the issue is resolved?

          Basil Crow added a comment -

          There have been no further reports of this issue over the past year, so I think it is likely this was fixed in JENKINS-58102. If this issue occurs again with Timestamper 1.10 or later, please open a new issue.

          Basil Crow added a comment - There have been no further reports of this issue over the past year, so I think it is likely this was fixed in JENKINS-58102 . If this issue occurs again with Timestamper 1.10 or later, please open a new issue.

            basil Basil Crow
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: