Reputation: 10193
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
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.
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.
Upvotes: 1