{"action":"opened","issue":{"url":"https://api.github.com/repos/jenkinsci/ansicolor-plugin/issues/138","repository_url":"https://api.github.com/repos/jenkinsci/ansicolor-plugin","labels_url":"https://api.github.com/repos/jenkinsci/ansicolor-plugin/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/ansicolor-plugin/issues/138/comments","events_url":"https://api.github.com/repos/jenkinsci/ansicolor-plugin/issues/138/events","html_url":"https://github.com/jenkinsci/ansicolor-plugin/issues/138","id":382125928,"node_id":"MDU6SXNzdWUzODIxMjU5Mjg=","number":138,"title":"Outputs from shared lib is not colorized","user":{"login":"ThilinaManamgoda","id":11749266,"node_id":"MDQ6VXNlcjExNzQ5MjY2","avatar_url":"https://avatars1.githubusercontent.com/u/11749266?v=4","gravatar_id":"","url":"https://api.github.com/users/ThilinaManamgoda","html_url":"https://github.com/ThilinaManamgoda","followers_url":"https://api.github.com/users/ThilinaManamgoda/followers","following_url":"https://api.github.com/users/ThilinaManamgoda/following{/other_user}","gists_url":"https://api.github.com/users/ThilinaManamgoda/gists{/gist_id}","starred_url":"https://api.github.com/users/ThilinaManamgoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThilinaManamgoda/subscriptions","organizations_url":"https://api.github.com/users/ThilinaManamgoda/orgs","repos_url":"https://api.github.com/users/ThilinaManamgoda/repos","events_url":"https://api.github.com/users/ThilinaManamgoda/events{/privacy}","received_events_url":"https://api.github.com/users/ThilinaManamgoda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T09:30:46Z","updated_at":"2018-11-19T09:30:46Z","closed_at":null,"author_association":"NONE","body":"Please provide precise details of the issue you detected.\r\n\r\n### Test environment\r\n\r\n- Jenkins Version: 2.151\r\n- AnsiColor Version: 0.6.0\r\n- Hostsystem: Apache tomcat 9.0\r\n\r\n### Expected behavior\r\n\r\nColorized outputs from shared library. \r\n\r\n### Actual behavior\r\n\r\nOutputs from a shared library is not colorized. \r\n### Steps to reproduce the behavior\r\n\r\nCreate a shared library with the following class and use the pipline script provided.\r\n\r\nClass: \r\n\r\nclass Utilities implements Serializable {\r\n    def steps\r\n    Utilities(steps) {this.steps = steps}\r\n    def color() {\r\n        steps.ansiColor('xterm') {\r\n            steps.echo \"Hello \\\\u001B[31mRed\\\\u001B[m\"\r\n        }\r\n       \r\n    }\r\n}\r\n\r\nPipeline:\r\n\r\n@Library(\"lib\") import org.example.Utilities\r\ndef utils = new Utilities(this)\r\nnode {\r\n     stage(\"Test\") {\r\n        utils.color()\r\n    }\r\n}"}}
{"actor":{"display_login":"ThilinaManamgoda"}}