arame3333
arame3333

Reputation: 10193

VSTS - I want to use an existing deployment definition for a new build

I have just completed a build in VSTS. Now I want to deploy it. I am doing this manually whilst I learn how to do this. I have a previous deployment definition that worked for a previous build. But when I click on Release for my latest build, that definition is not available. I get this message instead;

There are no release definitions associated with this build definition. Do you wish to create a new one?

So how do I associate a previous release definition with a new build?

Upvotes: 0

Views: 357

Answers (1)

Marina Liu
Marina Liu

Reputation: 38096

To link an existing release definition to a new build definition, you should remove the old artifact source linking in your release definition. Detail steps as below:

In release definition -> Artifacts Tab -> remove current artifacts -> Link an artifact source -> select your new build definition for Source (Build definition) and the Default version as Latest -> Link -> save -> create release.

enter image description hereenter image description here

Then your new build will be deployed by the existing release definition.

Note: If you don't have permission to edit release definition and if you have permission to create release definition, you can clone the current release and modify and Artifacts as you need. enter image description here

Upvotes: 1

Related Questions