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

Logstash output contains color annotations ([8mha...)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using the build wrapper individual lines are prefixed with color annotations, e.g.

      "message": [
            "[8mha:////4IqgB7fXHanVzRcGsQ5BecPfeXyrcbQQQq0oTcEIP8zlAAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==\u001b[0m[INFO] --- jetty-jspc-maven-plugin:9.2.18.v20160721:jspc (jspc) @ server ---"
          ]

      See also: https://github.com/dblock/jenkins-ansicolor-plugin/issues/15

        Attachments

          Issue Links

            Activity

            jbochenski Jakub Bochenski created issue -
            jbochenski Jakub Bochenski made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-5970 [ JENKINS-5970 ]
            jbochenski Jakub Bochenski made changes -
            Link This issue relates to JENKINS-7402 [ JENKINS-7402 ]
            jbochenski Jakub Bochenski made changes -
            Link This issue relates to JENKINS-6120 [ JENKINS-6120 ]
            jbochenski Jakub Bochenski made changes -
            Link This issue relates to JENKINS-6034 [ JENKINS-6034 ]
            jbochenski Jakub Bochenski made changes -
            Description When using the build wrapper individual lines are prefixed with color annotations, e.g.
            {code}
            [8mha:////4IqgB7fXHanVzRcGsQ5BecPfeXyrcbQQQq0oTcEIP8zlAAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==[INFO] --- maven-surefire-plugin:2.19.1:test (test-run2) ...{code}

            https://issues.jenkins-ci.org/browse/JENKINS-6120
            https://issues.jenkins-ci.org/browse/JENKINS-6034
            https://issues.jenkins-ci.org/browse/JENKINS-7402
            https://issues.jenkins-ci.org/browse/JENKINS-5970
            https://github.com/dblock/jenkins-ansicolor-plugin/issues/15
            When using the build wrapper individual lines are prefixed with color annotations, e.g.
            {code}
            [8mha:////4IqgB7fXHanVzRcGsQ5BecPfeXyrcbQQQq0oTcEIP8zlAAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==[INFO] --- maven-surefire-plugin:2.19.1:test (test-run2) ...{code}


            See also: https://github.com/dblock/jenkins-ansicolor-plugin/issues/15
            jbochenski Jakub Bochenski made changes -
            Component/s ansicolor-plugin [ 15995 ]
            jbochenski Jakub Bochenski made changes -
            Summary Log output contains color annotations ([8mha...) Logstash output contains color annotations ([8mha...)
            jbochenski Jakub Bochenski made changes -
            Description When using the build wrapper individual lines are prefixed with color annotations, e.g.
            {code}
            [8mha:////4IqgB7fXHanVzRcGsQ5BecPfeXyrcbQQQq0oTcEIP8zlAAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==[INFO] --- maven-surefire-plugin:2.19.1:test (test-run2) ...{code}


            See also: https://github.com/dblock/jenkins-ansicolor-plugin/issues/15
            When using the build wrapper individual lines are prefixed with color annotations, e.g.
            {code:javascript}
            "message": [
                  "[8mha:////4IqgB7fXHanVzRcGsQ5BecPfeXyrcbQQQq0oTcEIP8zlAAAAYB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P0+vJLE4u1gvPjexLDVPzxdEGvvmZ+X75ZekLlOVfvTjc8FPJgaGiiIGKaiG5Py84vycVD1nCA1SyAABjCCFBQCV27OjYAAAAA==\u001b[0m[INFO] --- jetty-jspc-maven-plugin:9.2.18.v20160721:jspc (jspc) @ server ---"
                ]{code}


            See also: https://github.com/dblock/jenkins-ansicolor-plugin/issues/15
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Markus Winter
            Path:
            pom.xml
            src/main/java/jenkins/plugins/logstash/LogstashOutputStream.java
            src/test/java/jenkins/plugins/logstash/LogstashIntegrationTest.java
            http://jenkins-ci.org/commit/logstash-plugin/188ea2b05f0c7ed3398caf63012b075ae7bb177f
            Log:
            JENKINS-42536 fix ansi console note (#62)

            When a line starts with a console note we trimmed the leading escape
            character before passing it to the removeNotes method. This makes it not
            recognize as a console note. So trim after removing the notes.

            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Markus Winter Path: pom.xml src/main/java/jenkins/plugins/logstash/LogstashOutputStream.java src/test/java/jenkins/plugins/logstash/LogstashIntegrationTest.java http://jenkins-ci.org/commit/logstash-plugin/188ea2b05f0c7ed3398caf63012b075ae7bb177f Log: JENKINS-42536 fix ansi console note (#62) JENKINS-42536 fix ansi console note When a line starts with a console note we trimmed the leading escape character before passing it to the removeNotes method. This makes it not recognize as a console note. So trim after removing the notes. * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
            jbochenski Jakub Bochenski made changes -
            Assignee Jakub Bochenski [ jbochenski ]
            Show
            jbochenski Jakub Bochenski added a comment - Fixed in https://github.com/jenkinsci/logstash-plugin/pull/62
            jbochenski Jakub Bochenski made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              jbochenski Jakub Bochenski
              Reporter:
              jbochenski Jakub Bochenski
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: