TFS在发布定义实例化上配置变量(TFS configure variables on Release definition instantiation)

系统教程 行业动态 更新时间:2024-06-14 16:58:30
TFS在发布定义实例化上配置变量(TFS configure variables on Release definition instantiation)

我有几个任务的发布定义设置。 当开发人员想从这个定义中创建一个发行版时,我想让他们选择他们想要发布的功能(打开/关闭任务)。 理想情况下,这可以通过创建发布对话框使用变量或类似的。

这可以做到吗? 或者是实现此目的的唯一方法,即创建草稿版本并在每个环境中启用/禁用任务? 相信这很容易出错(在一个环境上切换任务,但忘记在另一个环境中),并且这不是管理员锁定编辑定义(防止生产版本的错误设置)的选项。

了解我可以创建单独的发布定义来涵盖这些选项,但它看起来像很多重复。

I have a release definition setup with several tasks. When a developer wants to create a release from this definition, i'd like to give them the option of selecting which features they'd like to release (turn on/off tasks). Ideally this would be via the Create Release dialog using a variable or similar.

Can this be done? Or is the only way to achieve this to create a draft release and enable/disable the tasks on each environment? Believe this is prone to error (toggle task on one environment but forget to on another) and this is not an option as administrator has locked editing of definitions (prevent incorrect setup of production releases).

Understand I can create separate release definitions to cover the options but it seems like a lot of duplication.

最满意答案

不幸的是,目前这在TFS中不受支持。 解决方法就像您上面提到的那样,禁用并启用这些步骤或使用草稿版本。

这是关于您可以投票的请求的用户声音: https : //visualstudio.uservoice.com/forums/330519-team-services/suggestions/19165690-select-steps-when-create-release

Unfortunately, this is not supported in TFS currently. The workarounds are just like you mentioned above, to disable and enable those steps or use draft release.

This is a user voice about your request you could vote: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/19165690-select-steps-when-create-release

更多推荐

本文发布于:2023-04-15 03:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/fe25331faaadfa852b5fe84e78212e71.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:变量   实例   定义   TFS   configure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!