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

Coloring breaks timestamp output in Declarative Pipeline (NOT Blueocean)

    Details

    • Similar Issues:

      Description

      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" .
                      '''
                  }
              }
      }
      
      

        Attachments

          Activity

          Hide
          jbochenski Jakub Bochenski added a comment -

          Devin NusbaumJesse Glick maybe this is related to the ConsoleAnnotator change?

          Show
          jbochenski Jakub Bochenski added a comment - Devin Nusbaum Jesse Glick maybe this is related to the ConsoleAnnotator change?
          Hide
          jglick 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.

          Show
          jglick 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.

            People

            • Assignee:
              Unassigned
              Reporter:
              jbochenski Jakub Bochenski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: