Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_pipelines() always throws AzureDevOpsAuthenticationError - azure-devops v7.1.0b4 #475

Open
Branyac opened this issue Nov 24, 2023 · 0 comments

Comments

@Branyac
Copy link

Branyac commented Nov 24, 2023

Hi,

I can't get the list of Azure Pipelines because the function list_pipelines() always throws an AzureDevOpsAuthenticationError.

Steps to reproduce the error:

  1. Create an Azure DevOps PAT with Full access.
  2. Install the version 7.1.0b4: pip install azure-devops==7.1.0b4
  3. Replace the parameter values with you PAT and Azure DevOps parameters and run this code:
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication

personal_access_token = "PAT"
organization = "contoso"
project = "project-one"

credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=f'https://dev.azure.com/{organization}', creds=credentials)

pipelines_client = connection.clients.get_pipelines_client()
pipelines_list = pipelines_client.list_pipelines(project)
@Branyac Branyac changed the title list_pipelines() always returns AzureDevOpsAuthenticationError - azure-devops v7.1.0b4 list_pipelines() always throws AzureDevOpsAuthenticationError - azure-devops v7.1.0b4 Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant