Azure / Azure/azure-devops-cli-extension

[Feature Request] az pipeline build queue wait for completion

Open
#750 14 comments 5 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

Problem: it's complex to create a simple batch file which does something when the build is complete. Currently the batch file would need to handle the json response and poll status to determine build completion.

Proposal: Add az pipelines build queue --wait-for-build-complete. Block until build completes. A non-zero exit code would be returned if build is something other than successful. Very simple to sequence in a batch file.

Example batch file / check in script might be:
git push
az pipelines build queue --wait-for-build-complete
if ERRORLEVEL 1 (
echo investigate it!!!
exit /b 1 )
git pull
init
(etc)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.