How do I fix console log encoding issues on Azure CI?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 03:44:10

问题


I'm getting this on Azure CI when running Cypress in a docker container in a release pipeline. I'm guessing it could be because of some setting in Cypress, docker, NodeJS, or the CI itself.

![ ]1

I tried the NO_COLOR=1 Cypress option in the pipeline, but it didn't seem to have an effect.


回答1:


The environment variables set in the pipeline will not be active inside the Docker container. The Docker container has its own set of environment variables. I believe you will be able to resolve your problem by adding

ENV NO_COLOR=1 

in the Dockerfile



来源:https://stackoverflow.com/questions/58920377/how-do-i-fix-console-log-encoding-issues-on-azure-ci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!