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

12 views
Skip to first unread message

bochenski.kuba+jenkins@gmail.com (JIRA)

unread,
Jun 26, 2019, 10:42:02 AM6/26/19
to jenkinsc...@googlegroups.com
Jakub Bochenski created an issue
 
Jenkins / Bug JENKINS-58215
Coloring breaks timestamp output in Declarative Pipeline (NOT Blueocean)
Issue Type: Bug Bug
Assignee: Andrew Bayer
Attachments: Screenshot_20190626_164002.png
Components: ansicolor-plugin, pipeline-model-definition-plugin, timestamper-plugin
Created: 2019-06-26 14:41
Priority: Minor Minor
Reporter: Jakub Bochenski

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') {
            // build goes before tests to force updating the parent image
            steps {
                sh '''#!/bin/sh -eux

                    docker build --pull --tag "$GIT_COMMIT" .
                '''
            }
        }
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

bochenski.kuba+jenkins@gmail.com (JIRA)

unread,
Jun 26, 2019, 10:43:02 AM6/26/19
to jenkinsc...@googlegroups.com
Jakub Bochenski updated an issue
Change By: Jakub Bochenski
The next timestamp after a coloured line appears with the same color as the line and is not formatted.

!Screenshot_20190626_164002.png!

Relevant parts of Jenkinsfile
{code}


pipeline {
    options {
        withAWS(region: 'eu-west-1', roleAccount: acme, credentials: 'acme')
        timeout(time: 20, unit: 'MINUTES')
        timestamps()
        ansiColor('xterm')
    }

        stage('Build') {
            // build goes before tests to force updating the parent image
            steps {
                sh '''#!/bin/sh -eux

                    docker build --pull --tag "$GIT_COMMIT" .
                '''
            }
        }
}

{code}

bochenski.kuba+jenkins@gmail.com (JIRA)

unread,
Jun 26, 2019, 10:46:02 AM6/26/19
to jenkinsc...@googlegroups.com

bochenski.kuba+jenkins@gmail.com (JIRA)

unread,
Jun 26, 2019, 11:55:03 AM6/26/19
to jenkinsc...@googlegroups.com
Jakub Bochenski updated an issue
Change By: Jakub Bochenski
Environment: Jenkins ver. 2.176.1
Timestamper 1.9
AnsiColor 0.6.2
Pipeline: Declarative 1.3.9

jglick@cloudbees.com (JIRA)

unread,
Jun 26, 2019, 1:01:02 PM6/26/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jun 26, 2019, 1:02:04 PM6/26/19
to jenkinsc...@googlegroups.com
Jesse Glick commented on Bug JENKINS-58215
 
Re: Coloring breaks timestamp output in Declarative Pipeline (NOT Blueocean)

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.

me@basilcrow.com (JIRA)

unread,
Feb 18, 2020, 9:21:02 PM2/18/20
to jenkinsc...@googlegroups.com

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

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

me@basilcrow.com (JIRA)

unread,
Feb 18, 2020, 9:21:03 PM2/18/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages