This script can be used to export Azure DevOps pipelines.
- Create a Personal Access Token with read access on the
Build
andRelease
scopes: - Copy the
.env.example
file to.env
, and replace the token and organization url placeholders. - Download the .whl
- Install the
.whl
file in a virtual environment (or globally if you prefer)pip install *.whl
- Run the main
.whl
as:# download build pipelines using installed .whl console script devops_exporter 'projectname' --build # download build pipelines using .whl python -m devops_exporter.main 'projectname' --build
- (Alternatively) run code directly as:
# download release pipelines using python code directly from repo python main.py 'projectname' --release # download build pipelines python main.py 'projectname' --build # download build pipelines 1 and 2 python main.py 'projectname' --build --ids 1 2