azure-devops-python-api
azure-devops-python-api copied to clipboard
No documentation at all on how to get the pipelines for example. A link to the rest API does not help
I have no idea how to use this API. I hope Microsoft guys can take some time to write some useful API documentation. Wasting of timing trying to find some information is the feeling I'm left with when trying to find a way around Microsoft created things.
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
credentials = BasicAuthentication('', ado_personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)
pipeline_client = connection.clients_v6_0.get_pipelines_client()
pipelist = pipeline_client.list_pipelines("projectname")
# pipelist is now a list of Pipeline objects
The Pipeline objects are pretty useless though - there doesn't seem to be any way to find a link between a git repo and a pipeline, or a build and a pipeline, even though both can be seen in the ADO portal itself.