0
votes

As far as I can see, quite opposite to Azure DevOps GUI, az cli doesn't support environments when working with pipelines/builds. Neither does REST API, it seems.

I would like to get, as a part of another pipeline, repository version (commit) used by last successful build for a given environment. Is there a programmatically way of doing that?

1
Are you looking for the artifacts that used in a release pipeline? Have you checked Releases - Get Release api: docs.microsoft.com/en-us/rest/api/azure/devops/release/releases/…Cece Dong - MSFT
I forgot to mention that, to simplify build and deployment process we do not use releases, but have everything in the pipelines (build).Marcin

1 Answers

0
votes

There is no such API or command to get the environments. You may submit a feature request here:

https://developercommunity.visualstudio.com/content/idea/post.html?space=22