You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在TFS 2018发布环节创建自定义环境模板?

How to Create a Custom Environment Template in TFS 2018 Release Management

Got it, let's walk through how to build a custom environment template for your TFS 2018 release pipelines—since the docs you found only cover deletion, I’ll break down the step-by-step process you need:

  • First, open the TFS 2018 web portal, navigate to your target project, and switch to the Release tab.
  • From the top-right corner, click the Library tab, then select Environment Templates from the left sidebar.
  • Hit the + New template button to launch the template creation wizard.
  • Give your template a clear, descriptive name (like "Production Deployment with Staged Approvals") and add a brief description so your team knows its intended use case.
  • Now configure the template’s core components:
    • Click Add task to pull in tasks from the TFS task library—think PowerShell scripts, IIS deployments, database updates, or any steps your workflow requires. Configure each task’s parameters exactly how you want them reused across releases.
    • To add approval gates, click either Pre-deployment conditions or Post-deployment conditions in the template header. Enable the approval setting and specify individual users or security groups that need to sign off before/after deployment.
    • Define reusable Variables for values like server addresses, connection strings, or version numbers—this lets you tweak these parameters without rebuilding the entire template each time.
  • Once you’re happy with the setup, click Save to finalize your custom template.
  • To use it later: When creating a new release definition or adding a new environment to an existing one, select the Custom category, and your template will appear ready to be added with all your pre-configured tasks and settings.

Quick Tips

  • If you want a head start, you can base your custom template on one of TFS’s built-in templates (like "Empty" or "Azure App Service Deployment")—just edit the existing tasks and conditions instead of building from scratch.
  • To update a template later, head back to Library > Environment Templates, find your template, and click Edit to adjust tasks, variables, or conditions as needed.

内容的提问来源于stack exchange,提问作者user3634685

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 03:57:33