简体   繁体   中英

How to version control TFS' configurations

In our company we have a TFS server used for CI tasks (build & release) and as a Source Control server (we use Git). I would like to put under version control the TFS build & release configurations, something like Jenkins Job Builder for Jenkins.

The tool I am searching for should not only act as a sort of backup, but should allow us to reconfigure TFS simply launching a CLI command (like jenkins job builder's jenkins-jobs command).

Is there anything out there which accomplish to this requirement?

Regards

Sorry, there are no similar things as Jenkins Job Builder for TFS by now.

There had been a related user voice: provide a way to version-control build definitions

We announced the public preview of YAML build definitions in VSTS . You can now author the build process in code. The preview only supports build not support with release. And this is also not available with on-premise TFS server by now.

More details please review: How to use YAML builds

As a workaround, you can simply export and import the build definitions in TFS 2017update2 and above. To update the build definition, you can use the REST API ( Update a build definition ) with the PUT method:

eg:

PUT http://server:8080/tfs/DefaultCollection/Project/_apis/build/definitions/29?api-version=2.0

Content-Type: application/json
{json body here}

Take a look at this related question: Does TFS 2017 have the ability to export and import build definitions into remote server?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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