How to automate Build/Release definitions in TFS 2018?

吃可爱长大的小学妹 提交于 2019-12-11 05:07:38

问题


I wish to automate management of my Build/Release definitions, for easy backup/restore operations.

How can I do this in TFS 2018? I'm open to using either the REST API or the SDK, although I prefer the SDK whenever possible.

--EDIT--

This is for TFS, not VSTS


回答1:


In TFS 2018 and later versions, it supports export/import build/release definitions directly. Build/Release definitions are implemented internally as .json files, so you can see details on changes in the file’s history:

Check the following release note:

https://docs.microsoft.com/en-us/visualstudio/releasenotes/tfs2018-relnotes#buildimport

Or you can use TFS REST API to get build and release definitions:

  • TFS build definition
  • TFS release definition

Adding a screenshot of how to check build definition history:



来源:https://stackoverflow.com/questions/51181530/how-to-automate-build-release-definitions-in-tfs-2018

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!