Continues Integration through email approval in TF

2019-07-18 08:38发布

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.

2条回答
不美不萌又怎样
2楼-- · 2019-07-18 09:09

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.

查看更多
Animai°情兽
3楼-- · 2019-07-18 09:11

You can do this pretty simply in TFS.

  1. In your release process, select Edit edit

  2. Select Triggers triggers

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

  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 set email, who, when and where

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

查看更多
登录 后发表回答