azure-pipelines-tasks-terraform icon indicating copy to clipboard operation
azure-pipelines-tasks-terraform copied to clipboard

Text encoding issues in Azure DevOps

Open batizar opened this issue 4 years ago • 9 comments

The text generated by task seems to have some encoding issues on my pipeline, any ideas how to fix this?

image

Thanks

batizar avatar Sep 10 '20 09:09 batizar

What is being displayed there is the control codes for colourised output from terraform. By default terraform produces colour output, but has a command line option not to colourise the output which is useful for automation pipelines.

If you add -no-color as a command option in the task, that will prevent terraform producing colour output making the output readable.

richard-nellist avatar Oct 03 '20 10:10 richard-nellist

Thanks @richard-nellist for the suggested fix. Slating this for next release as it should be trivial fix if suggested fix resolves the issue.

charleszipp avatar Oct 05 '20 12:10 charleszipp

Thanks @richard-nellist, that fixed the issue!

Thanks @charleszipp for great task, out runs a lot faster than what we used to use.

batizar avatar Oct 06 '20 09:10 batizar

@batizar I wonder what gives.. image

I see colors with no issues. Are you using YAML pipeline or a classic one?

favoretti avatar Oct 22 '20 08:10 favoretti

@favoretti I'm using classic one!

batizar avatar Oct 22 '20 08:10 batizar

Ah, I see. It works well in YAML pipelines. Wonder if there's a way to detect which pipeline env we're in..

favoretti avatar Oct 22 '20 08:10 favoretti

As far as I could tell it works correctly in Pipelines/Pipelines, but does not work correctly in Pipelines/Releases. Don't know if there's anything different in how these two render console output.

bothzoli avatar Feb 25 '21 12:02 bothzoli

I can confirm this just affects the Releases for me too. I've re-added -no-color to get round the issue until this is fixed.

darren-johnson avatar Mar 05 '21 11:03 darren-johnson

see also this issue on the subject: https://github.com/microsoft/azure-pipelines-agent/issues/1569 especially this comment by the end: https://github.com/microsoft/azure-pipelines-agent/issues/1569#issuecomment-618505636

bothzoli avatar Apr 22 '21 12:04 bothzoli

Is there still an issue here?

jason-johnson avatar Feb 02 '23 12:02 jason-johnson

This is not an issue with this extension but is an issue in azure devops itself (see here). Closing.

jason-johnson avatar Mar 22 '23 12:03 jason-johnson