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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins ver. 2.32.2
      Logstash 1.20
      AnsiColor 0.4.3

      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

          [JENKINS-42536] Logstash output contains color annotations ([8mha...)

          Jakub Bochenski created issue -
          Jakub Bochenski made changes -
          Link New: This issue relates to JENKINS-5970 [ JENKINS-5970 ]
          Jakub Bochenski made changes -
          Link New: This issue relates to JENKINS-7402 [ JENKINS-7402 ]
          Jakub Bochenski made changes -
          Link New: This issue relates to JENKINS-6120 [ JENKINS-6120 ]
          Jakub Bochenski made changes -
          Link New: This issue relates to JENKINS-6034 [ JENKINS-6034 ]
          Jakub Bochenski made changes -
          Description Original: 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
          New: 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
          Jakub Bochenski made changes -
          Component/s New: ansicolor-plugin [ 15995 ]
          Jakub Bochenski made changes -
          Summary Original: Log output contains color annotations ([8mha...) New: Logstash output contains color annotations ([8mha...)
          Jakub Bochenski made changes -
          Description Original: 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
          New: 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

          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.

          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
            jbochenski Jakub Bochenski
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: