Azure vsts Python's client library is still under heavy development and without documentation. I've had issues to make it work within Corporate environment with Proxies in place.
This repo is an example wrapper on top of Azure Devops API, which has helpful documentation.
Code I hope is easy to follow along.
Idea of the example is to:
- identify all the Builds in a pipeline
- Extract the Build artifacts
- Recursively read all the Zip files
- List out files generated in the build
Example is just to build a skeleton framework on top of the API documentation
Not done:
- Logging (although the loggers and rotation has been added. Actual comments are not done)
- Error handling. Feel free to fork and do so for your needs.
Steps to run the framework:
- Create virtual environment (Python 3)
- Install the requirements.txt
- Modify and run main.py as needed