是否可以为vNext构建定义和发布模板创建树视图结构? [英] Is it possible to create treeview structure for vNext build definition and release template?

查看:87
本文介绍了是否可以为vNext构建定义和发布模板创建树视图结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

只是想知道是否有任何可用的插件,我们可以将vNext构建定义和发布模板组织为树视图结构,或者是否有可用的API我可以实现这个插件吗?类似

Just wonder if there is any plug-in available that we could organize vNext build definition and release template as treeview structure, or is there API available that I could implement this plug-in? Something like

ReleaseXX

ReleaseXX

   建立定义1

    Build Defintion 1

   构建定义2

    Build Definition 2

ReleaseXY

ReleaseXY

   构建定义3

    Build Definition 3

   建立定义4

    Build Defintion 4

....

最好的问候,

Andy P

最好的问候,Andy Pham

Best Regards, Andy Pham

推荐答案

嗨AndPham,

Hi AndPham,

感谢您在此发帖。

你的意思是你想获得与Release相关联的Build Artifact Source?如果是这样,没有用于创建树视图结构的插件,但是您可以尝试使用Rest Api来获取构建工件

Did you mean that you want to get the Build Artifact Source which linked to Release? If so, there is no plug-in to create treeview structure, but you could try to use the Rest Api to get the build artifacts

哪些链接到自定义插件中的Release- in:

Which are linked to the Release in your custom plug-in:

Get http://XXXX:8080/tfs/CollectionName/ProjectName/_apis/release/definitions?


expand = artifacts& api-version = 3.0-preview.1
expand=artifacts&api-version=3.0-preview.1




然后你得到了结果如下格式:

Then you get the result like the following format:

 

"artifacts": [
        {
          "id": 1,
          "type": "Build",
          "alias": "Fabrikam.CI",
          "definitionReference": {
            "definition": {
              "id": "1",
              "name": "Fabrikam.CI"
            },
            "project": {
              "id": "ff213d65-d61d-447c-b39d-d16f21b18364",
              "name": "Fabrikam"
            }
          }
        }
      ],

有关详细信息,请参阅以下链接:

For more information, you could refer to the following link:

https://www.visualstudio.com/en- us / docs / integrate / api / rm / definitions

最好的问候

Limittiao Gao

Limitxiao Gao


这篇关于是否可以为vNext构建定义和发布模板创建树视图结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆