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

Coloring breaks timestamp output in Declarative Pipeline (NOT Blueocean)

    XMLWordPrintable

Details

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: