You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
az devops login fails in my CI environment with a strange error about a missing Python package.
$ echo "faketoken" | az devops login
Unable to use secure credential store in this environment.
Please refer to alternate methods at https://aka.ms/azure-devops-cli-auth
using Environment variable
or use 'az login'
An error occurred. Pip failed with status code 2 for package keyring~=17.1.1. Use --debug for more information.
I already had to fix this last year using the steps discovered and documented in #1099 .
Now it's happening again and I don't know how to fix it.
Can someone help?
Here's the script I use to test the installation of az devops in my CI environment.
#!/bin/bash
# Name: Azure Devops CLI
# Source: https://docs.microsoft.com/es-es/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=apt
set -euxo pipefail
sudo apt-get update && sudo apt-get install --yes \
curl
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
sudo az extension add --system --upgrade --name azure-devops
az --version
# Fix error in `az devops login` because of missing package.
# https://github.com/Azure/azure-devops-cli-extension/issues/1099
sudo apt-get install --yes python3-pip
sudo pip3 install --target /opt/az/lib/python3.6/site-packages/ --upgrade pip
sudo pip3 install --target /opt/az/lib/python3.6/site-packages/ --upgrade keyring~=17.1.1
echo "faketoken" | az devops login
az devops logout
Disabled until the following issue is resolved.
Azure/azure-devops-cli-extension#1272
"az devops login: Pip failed with status code 2 for package keyring~=17.1.1"
az devops login
fails in my CI environment with a strange error about a missing Python package.I already had to fix this last year using the steps discovered and documented in #1099 .
Now it's happening again and I don't know how to fix it.
Can someone help?
Here's the script I use to test the installation of
az devops
in my CI environment.Here's the latest execution in Github actions: https://github.com/iainelder/dotfiles/runs/6093850654?check_suite_focus=true
The text was updated successfully, but these errors were encountered: