Skip to content

Console Log unable to parse "\n"  #5037

@adityasood

Description

@adityasood
Issue Type
  • Bug Report
Summary

Currently, if a user has a script which uses "\n" character set in their task execution, the console log fails to parse and does not show up from this task onwards. This can easily be reproduced with the YAML file attached with the issue

Basic environment details
  • Go Version: 18.7.0
  • JAVA Version: Java8
  • OS: MacOs
  • Browser vendor and version (if relevant): Chrome
Steps to Reproduce
  1. Create a YAML pipeline using the attached YAML file
  2. Run the task. The console logs does not show up
  3. Inspect using the browser developer tools, you will observe parse failure error (attached)
  4. Edit the YAML file to remove "\n" from the task. The console log will now show up
Expected Results

The console logs should show up.

Actual Results

The console logs do not show up. There is a parse error

screen shot 2018-08-17 at 11 11 38 am

[sample-yaml-file.txt](https://github.com/gocd/gocd/files/2296105/sample-yaml-file.txt) [console.log](https://github.com/gocd/gocd/files/2296107/console.log)

screen shot 2018-08-17 at 11 04 25 am

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions