2

Is it possible to export all build and release definitions from VSTS in a single go ?

I know it was possible with TFS,

Is it possible to Export TFS 2010 Build Definitions?

Mathematics
  • 7,314
  • 25
  • 77
  • 152
  • @PatrickLu-MSFT I really appreciate your time to answer my question, I am in middle of something, as soon as I try and make it work, I will accept the answer, thanks again – Mathematics Mar 11 '19 at 09:22

2 Answers2

2

Well, by the same token, you can use Azure Devops API to export those.

List build definitions
List release definitions

4c74356b41
  • 69,186
  • 6
  • 100
  • 141
  • 1
    Some things to probably note about this approach ... exporting the build definitions leverage hard-coded specific id values. If you try to import later maybe to a fresh environment, you might have issues with things that leverage a specific id (variable groups, tasks groups, etc) – Matt Mar 05 '19 at 15:54
2

Unlike TFS you could use tfpt command line. In Azure DevOps, the simple way is using Rest API to do this.

You could use list build/release definition first, it should return a json file.

Normally, when you import the JSON file, you will get a new build definition.

Besides, if you are using YAML builds which will configure your CI process as code. You could directly copy .yml files.

The release definitions are the same as build.

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62