BenAlabaster
BenAlabaster

Reputation: 39806

Are TFS Release Manager Templates versionable?

How do I (is it possible to) store my release management templates under version control? It seems as though this should be something that I should be able to version alongside the codebase that it's deploying.

Upvotes: 2

Views: 67

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 58980

Basically, you don't. Release Management Server stores its release templates as Windows Workflow XAML, with a lot of links to things that only live in the Release Management database. Ask me how I know!

You can accomplish what you're after (and be more future-proof in the process) by writing your deployment scripts as PowerShell or Desired State Configuration scripts, then source controlling them and dropping them alongside your build. Then you can just have Release Management invoke your scripts, which eliminates a good bit of the versioning concern.

If you're interested in extracting the deployment logic in agent-based workflows, take a look at the link I provided -- the ALM Rangers released a tool to translate agent-based release templates into PowerShell scripts. Full disclosure: I am a major contributor to the project.

Upvotes: 3

Related Questions