question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add Azure DevOps Pipeline Release Status CLI

See original GitHub issue

Related 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:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
navba-MSFTcommented, Jul 22, 2022

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 ?

0reactions
v-anvashistcommented, Jul 25, 2022

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Azure Pipeline Build Status with the Azure CLI
With the new Azure DevOps CLI extension, I can now get build status directly from the Visual Studio Code terminal.
Read more >
az pipelines release - Microsoft Learn
Open the release results page in your web browser. Azure DevOps organization URL. You can configure the default organization using az devops configure...
Read more >
Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Learn how to troubleshoot pipeline runs in Azure Pipelines and Team Foundation ... Build and release failures may also result from external commands....
Read more >
Learn about Azure DevOps command line interface extension
Command usage. Adding the Azure DevOps Extension adds devops , pipelines , artifacts , boards , and repos groups.
Read more >
Create your first pipeline - Azure Pipelines - Microsoft Learn
Add a status badge to your repository · In Azure Pipelines, go to the Pipelines page to view the list of pipelines. Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found