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...)

          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.

          Jakub Bochenski added a comment - Fixed in https://github.com/jenkinsci/logstash-plugin/pull/62

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

              Created:
              Updated:
              Resolved: