azure-pipelines-tasks-terraform
azure-pipelines-tasks-terraform copied to clipboard
Text encoding issues in Azure DevOps
The text generated by task seems to have some encoding issues on my pipeline, any ideas how to fix this?
Thanks
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.
Thanks @richard-nellist for the suggested fix. Slating this for next release as it should be trivial fix if suggested fix resolves the issue.
Thanks @richard-nellist, that fixed the issue!
Thanks @charleszipp for great task, out runs a lot faster than what we used to use.
@batizar I wonder what gives..
I see colors with no issues. Are you using YAML pipeline or a classic one?
@favoretti I'm using classic one!
Ah, I see. It works well in YAML pipelines. Wonder if there's a way to detect which pipeline env we're in..
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.
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.
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
Is there still an issue here?
This is not an issue with this extension but is an issue in azure devops itself (see here). Closing.