2

In VS Team Services > Releases, I want to 'promote' a specific build/artifact version to a single environment. For example:

Dev     QA     Prod
v223       
v123   v123

I want to promote #123 to Prod, but it looks like the only way to do that is to Create a release to all 3 environments, which will overwrite #223.

enter image description here

2
  • Why are you not able to promote your first release (the one in Alfa) to Prod? Commented Dec 9, 2015 at 18:28
  • I can - but I can only release to a 'final destination', and it also releases to all environments in the pipeline. So if I have a newer build in Dev (but still testing) it will get overwritten. @MrHinsh
    – password
    Commented Dec 9, 2015 at 22:01

2 Answers 2

2

There isn't any way to do this for now. You can submit a feature request on VSTS User Voice: http://visualstudio.uservoice.com/forums/330519-team-services/

7
  • Thanks! This seems pretty common in DevOps, and tools like Octopus Deploy do this.
    – password
    Commented Dec 9, 2015 at 17:24
  • You can clone the release pipeline and delete the first two stages to create a single stage release. Commented Dec 9, 2015 at 18:30
  • Octopus is deployment with release bolted on. Traceability was not the original purpose. Commented Dec 9, 2015 at 18:31
  • @MrHinsh yes that is a workaround - I shouldn't have to create a single stage release for every component & every environment.
    – password
    Commented Dec 9, 2015 at 22:02
  • You should not be bypassing your release process! Why can't you push your v123 that is currently in Alfa to production? Commented Dec 10, 2015 at 19:44
1

You have a release pipeline that goes Dev -> QA -> Prod. You create a release for version #123 and promote it progressively through the stages in your pipeline. Version #223 can be in Dev, and you can still promote the release for build #123 from QA->Production.

Skipping stages and not testing software in lower environments is a huge problem that results in pain and suffering. One of the cornerstones of a stable release process is consistency. There are tons of ways to make your release process both flexible enough to handle the scenario you're describing while still being consistent. Skipping stages isn't it.

If you need to re-release an older build of your software, it should still go through the same pipeline. Just because it's an old build doesn't mean that you don't need to at least do a cursory investigation to make sure it's being deployed correctly.

Will that overwrite the version currently on the lower environments? Depends on how you structure things! For web applications, maybe you make it multi-tenant, so you can have multiple versions running side-by-side on the same machine. Or deploy to IaaS VMs, so you can just provision a new one and leave the currently-running VM alone. Or deploy to Azure PaaS and use different staging slots for different versions.

2
  • Thanks for the comment. I agree with you completely. My question is how to do your first paragraph in VSO. I cannot find a 'promote' button. So when I do want to promote #123 to Prod, it looks like I can only 'release' to all environments. So it wipes away my dev and puts #123 in all environments. Its weird....
    – password
    Commented Dec 9, 2015 at 0:34
  • You have a release of v123 currently in Alfa. Open that release and promote it to production. Commented Dec 10, 2015 at 19:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.