简体   繁体   English

如何在 azure devops 扩展 api 中获取当前发布上下文

[英]How to get current release context in azure devops extension api

Is there anyway to get current release context without using releaseId on that release page?无论如何在该发布页面上不使用 releaseId 来获取当前发布上下文? I can use ReleaseRestClient with getRelease(Id) to get the release info, but I want to know is it possible to get current page data without using releaseId?我可以使用 ReleaseRestClient 和 getRelease(Id) 来获取发布信息,但我想知道是否可以在不使用 releaseId 的情况下获取当前页面数据? For example, in Build you can use IBuildPageDataService to get the build page data.例如,在 Build 中,您可以使用 IBuildPageDataService 来获取构建页面数据。 Is there anything like IReleasePageDataService?有没有类似 IReleasePageDataService 的东西?

Is there anyway to get current release context without using releaseId on that release page?无论如何在该发布页面上不使用 releaseId 来获取当前发布上下文?

Available Classes and Interfaces are listed in azure-devops-extension-api package . azure-devops-extension-api package中列出了可用的类和接口。 And as I know, there's no something like "IReleasePageDataService" can be used to get current release page data.据我所知,没有像“IReleasePageDataService”这样的东西可以用来获取当前的发布页面数据。

So I think you have to use ReleaseRestClient with releaseId to get the release info.所以我认为你必须使用ReleaseRestClient和 releaseId 来获取发布信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM