Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clone a build definition Visual Studio Online

Tags:

azure-devops

I am using VS 2013 with Team Explorer linked to Visual Studio Online.

I have "release" build definition and I want to copy/clone this to a new definition for a "debug" build.

Team Explorer does not appear to give me this option :-(

I tried using the "Community TFS Build Manager" to clone the build definition, but doesn't appear to allow this as it requires cloning to a different project.

I tried using TFS Power tools TFPT powershell commands, but it always gives me an error "Unable to determine the source control server".

What is the recommended way to make a copy of a build definition?

like image 694
Salguod Avatar asked Mar 21 '23 05:03

Salguod


2 Answers

Go to team Explorer.

Select the particular build you wanted to clone.

Right Click -> Clone Build Definition.

This way you can clone the Build definition which gets saved under the same project with name:

Copy of [Build definition you selected].

like image 71
Prakash Avatar answered Mar 22 '23 19:03

Prakash


From Visual Studio Team Services you can clone a build by browsing to "Build and Release" -> "Builds" -> "Build Definitions", hover over the build definition to clone, then click on the ellipsis button that appears and select "Clone" from the context menu:

Build definition context menu

like image 29
John Trenwith Avatar answered Mar 22 '23 18:03

John Trenwith