Please add Azure DevOps Pipeline Release Status CLI
See original GitHub issueRelated command az pipelines release
Is your feature request related to a problem? Please describe. am triggering a release through az pipelines release create CLI and I want to poll for the release status. This will help in updating the release status at remote
Describe the solution you’d like az pipelines build list --status <accepted values: all, cancelling, completed, inProgress, none, notStarted, postponed> or az pipelines runs list which is already have a way to check the running build status. In a similar way, there must be an arguement to track the release status.
Describe alternatives you’ve considered
There is no direct way of doing it but for now, I can do it with below commands
az pipelines release definition show --id <release pipeline id> --query environments[0].currentRelease.url -o tsv Above cmd will give Job URL like https://vsrm.dev.azure.com/<org>/<project_id>/_apis/Release/releases/<release_number> To access the above URL, we need to authenticate with az devops PAT auth=$(echo -n "pat:<PAT>" | base64) wget "https://vsrm.dev.azure.com/<org>/<project_id>/_apis/Release/releases/<release_number>" --header "Authorization: Basic $auth" -q -O - | jq -r .environments[].status
Additional context Not Applicable
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
Removing CXp attention and adding Service team to look into this issue.
@v-anvashist, @V-hmusukula Could you please look into this and provide an update ?
@sunnybhambhani We are consuming API’s in CLI service and not able to find this feature support in API doc of az pipelines release
https://docs.microsoft.com/en-us/cli/azure/pipelines/release/definition?view=azure-cli-latest
Do we have any API doc on this feature please let us know?