Continues Integration through email approval in TFS release definition

白昼怎懂夜的黑 提交于 2019-12-12 18:18:28

问题


I'm using Microsoft Visual Studio Team Foundation Server Version 14.102.25423.0

As part of our company's continues integration deployment, I want to implement the following: I have created a release definition with two environments configured under it (QA & Production).

I want to receive an email when all the tasks in the QA environment are completed successfully. In that email there should be a button that once pressed, the Production tasks will start.

I would love to hear any ideas how do I implement this. All I've found so far are build alerts and not release alerts.

Thanks, Much appreciated.


回答1:


Add a requirement for an approval prior to production deployment and ensure that the "Send Email Notification" option is enabled. You'll get an email with a link to provide the approval, which will trigger the production release.




回答2:


You can do this pretty simply in TFS.

  1. In your release process, select Edit

  2. Select Triggers

  3. Find your Production environment in the Environment triggers section and select the Edit pencil.

  4. Select Approvals

  5. You can then set Pre-deployment and Post-Deployment approvers.
  6. In the Options section, select the Send an email notification to the approver option

This will send an email on pre-approval if that is what you selected.



来源:https://stackoverflow.com/questions/39229071/continues-integration-through-email-approval-in-tfs-release-definition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!