azure-cli: ACR build fails in Jenkins with "'ascii' codec can't encode character"
Describe the bug
Command Name
az acr build
Errors:
'ascii' codec can't encode character '\u0151' in position 4068: ordinal not in range(128)
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
...
python3.6/site-packages/colorama/ansitowin32.py, ln 190, in write_and_convert
self.write_plain_text(text, cursor, len(text))
python3.6/site-packages/colorama/ansitowin32.py, ln 195, in write_plain_text
self.wrapped.write(text[start:end])
UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 4068: ordinal not in range(128)
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps hereā¦
az acr build --registry {} --resource-group {} -t {} -t {} -f {} {}
Expected Behavior
This is the latest version of the AZ CLI, so I expected the old issue to be resolved
Environment Summary
Linux-3.10.0-1127.10.1.el7.x86_64-x86_64-with-centos-7.7.1908-Core
Python 3.6.8
Installer: RPM
azure-cli 2.10.1
Additional Context
When running the same az acr build command with same Docker context on my local device it works properly.
Local device versoins:
MacOs Catalina 10.15.5
azure-cli 2.10.1
Python 3.8.5
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (6 by maintainers)
waiting for our client to try this