Email Report Extension for Azure DevOps MarketplaceGenerates a Report with the information from the pipeline and sends it as email. Goal is to provide all the relevant info happened in the pipeline, in a concise and neat manner. Report contains:
Configuring Email TaskThe Email Task can be added to your pipeline, preferably at the end of the pipeline for the task to be able to gather data for the entire run. The email report task is present under 'Utilities' catagory. Make sure that the "Always run" flag is set for the task so that you get the email report irrespective of previous tasks' outcome in the pipeline. Send Mail ConfigurationSend Mail Condition - You can configure when you want to receive the email. i.e, On New Failures, on Success, on Failure or Always. When on Failure is selected, we send the email only if there is a test failure or there are previous task failures. Note: "On New Failures" is an experimental option to reduce spam in case of a continously failing pipeline. using this option, report will be sent only in the first instance of the continously failing run. Task will compare failed tasks and any failed tests between the previous run and the current run to see if failures are same or not. It doesn't compare logs, just the taskname and the test result ids that failed. If Tasks or Tests failed are same but with different errors for example, this will consider it as "Same failure" and not a new one. Email Subject - User can configure the email subject he wants to get. You can add any environment variables here which will be expanded. To add test pass percentage in the email subject, we have exposed a place holder {passPercentage}, which you can use in the email subject, as shown below. Include in To/Cc Section - You can dynamically add who wants to receive the email when the send mail condition is satisfied. For eg, you can configure to send email to the people who authored the commits that were tested in the current release. Or, if there are test failures, u can configure to send email to the failed test owners & active bug owners that are associated to the failing tests. To/Cc - You can add a fixed list of people who wants to recieve the email when the send mail condition is satisfied. Configuring Email contentGroup Test Summary - You can add test summary sections by Test run or Test priority. Include Test Results - If there are test failures, you can configure if you want to see the test result details. You can configure to receive failed tests & Other tests. Group Test Results - You can group the tests results shown by priority or Test run. Include Commits - Check this field to receive the commits information that are tested in the current release environment. Advanced SectionMaximum Test results to show - User can set the maximum test results that they want to receive in the email report. If there are test failures more than this, it will be truncated & will be notified that the test results are truncated. Include Others in Total count - Used to configure if the others tests (NotExecuted, inconclusive etc), has to be considered as failure for calculating Pass percentage SMTP ConnectionCreate a "Generic" Service Connection in 'AzureDevOps' Service Connections with a Username, password and SMTP Server. Select the created endpoint from the dropdown menu in the task. Try to use public SMTP servers - for example - “smtp.live.com” (Hotmail/Outlook.com). SMTP credentials generic endpoint can be configured as below for example: |