我有几个任务的发布定义设置。 当开发人员想从这个定义中创建一个发行版时,我想让他们选择他们想要发布的功能(打开/关闭任务)。 理想情况下,这可以通过创建发布对话框使用变量或类似的。
这可以做到吗? 或者是实现此目的的唯一方法,即创建草稿版本并在每个环境中启用/禁用任务? 相信这很容易出错(在一个环境上切换任务,但忘记在另一个环境中),并且这不是管理员锁定编辑定义(防止生产版本的错误设置)的选项。
了解我可以创建单独的发布定义来涵盖这些选项,但它看起来像很多重复。
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
更多推荐
发布评论