Giter VIP home page Giter VIP logo

azure-devops-engineering-extensions's Introduction

Azure DevOps Engineering Marketplace Extensions

AzureDevOps Marketplace Extensions to do various engineering tasks.

Email Report Task

Generates 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.

Read more about V1 here. Read more about V2 here.

Pull Request Insights Task

PullRequestInsightsTask provides insights into pipelines. This extension has two main functions:

  1. Investigating pull request validation failures
  2. Alerting pull request owners to the introduction of long running tasks.

Read more here.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

To build:

npm install
npm run build // builds all tasks
npm run build:t1 // build specific task - first task
npm run build:t2 // builds second task - Refer package.json

To run unit tests (at root):

npm test

To run PullRequestInsights task E2E w/o installing it on a pipeline:

npm run e2e:emailreport // or look below
npm run e2e:t1 // proxy for above
npm run e2e:t2 // proxy for prinsights

VS Code Debugging option is also available. Use launch.json under .vscode directory. Note: E2E test(s) will fail by default with 401 errors as the restclients are not authenticated without providing correct credentials. Change E2E test code to supply correct credentials to test the scenario.

Packaging:

Run the pack command for each task. t1/t2/... are shortcuts for tasks in alphabhetical order. Please check package.json to confirm or use the actual names if preferred.

npm run pack:t1 // if option not specified, "dev" is default. Doesn't create VSIX.
npm run pack:t1 prod // creates VSIX for emailReport
npm run pack:t2  // Doesn't create VSIX
npm run pack:t2 prod // Creates VSIX for pullRequestInsights

Note: Option "dev" doesn't create a VSIX file. Instead, it prepares the output task folder ready for upload to an AzureDevOps account and test it.

azure-devops-engineering-extensions's People

Contributors

dependabot[bot] avatar jnilau avatar leahschwartz avatar madkoo avatar microsoft-github-policy-service[bot] avatar saikrishnav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-devops-engineering-extensions's Issues

Incorrect duration seen in report sent though Email task in Azure devops pipeline

We are running several Tosca test suits though Azure devops pipeline. We have configured email task to send email test report after pipeline job completion.

Out of many pipelines that we are running, there is one pipeline that is displaying incorrect duration. The duration of pipeline is 31m and but it displays 1h32m. (Snapshot attached).We can see the correct duration if we go inside the job in the pipeline.

We are seeing this issue consistently from months. Is there anything we could do to correct this?
All other pipeline display correct duration.

Please see https://developercommunity.visualstudio.com/t/Incorrect-duration-seen-in-report-sent-t/1658802 for more details
I am also attaching Azure debug logs and yml file of pipeline definition
email
job
azure-pipelines-yml.txt

debug_logs.txt

Can you add an additional field to allow entering custom text

Just felt it would be awesome if there is a field to enter custom text that will be shown at the starting of email content.

That could allow us to send the reports to next stage approver, and provide him with some additional information like approval links ..,

Set passing rate of Azure DevOps Visual Studio Test Email Report

We are using Playwright and Visual Studio Test to test our Web App and send an email report after testing.

image

Currently, in the email report, it will still report as failed even if it is 97% passed. Is there any way to change it? For example, if the passing percentage is 80% and above it is considered Passed.

image

Email Report Extension task throwing error in SMTP login.

Hi, As per our requirement we need to send an email once the Functional testing executed via pipeline and we also need to send the test results in email. So we have installed the "Email Report Extension " from marketplace and configured the SMPT service connection as well. But while executing the pipeline it throwing the Timeout Error.

Please help us to fix this issue.

Attaching the logs for your reference :

2023-03-30T03:17:04.4805508Z ##[section]Starting: Send Email Report Always
2023-03-30T03:17:04.4908917Z ==============================================================================
2023-03-30T03:17:04.4909033Z Task : Email Report
2023-03-30T03:17:04.4909093Z Description : Send rich email report for test results and for tasks in this stage
2023-03-30T03:17:04.4909201Z Version : 1.1.8
2023-03-30T03:17:04.4909264Z Author : Microsoft Corporation
2023-03-30T03:17:04.4909926Z Help : Sets 'EmailReportTask.EmailSent' variable to true if it sent email successfully. Learn More
2023-03-30T03:17:04.4910116Z ==============================================================================
2023-03-30T03:17:05.5685422Z Node Version: v6.17.1
2023-03-30T03:17:05.6872442Z Fetching data for email report
2023-03-30T03:17:06.1702441Z Fetched test owners data
2023-03-30T03:17:06.2966581Z Fetching last release by completed environment id - 15239 and branch id refs/heads/SubscriptionKeyms
2023-03-30T03:17:06.4052709Z Unable to fetch last completed release for release definition:40 and environmentid: 195
2023-03-30T03:17:06.4053229Z Unable to find any last completed release
2023-03-30T03:17:06.4053565Z Fetched release data
2023-03-30T03:17:06.8829668Z Getting Test summary data for test run - CampaignManagement-TestSuite
2023-03-30T03:17:07.0098513Z Created report view model
2023-03-30T03:17:07.0107148Z Creating report message
2023-03-30T03:17:07.0108203Z CurrentDir: D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\htmlreport
2023-03-30T03:17:07.0108731Z Loading Email Template: D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\htmlreport\EmailTemplate.xslt
2023-03-30T03:17:07.0109068Z Creating summary group viewmodel for 1
2023-03-30T03:17:07.1211182Z computing email addresses for to section
2023-03-30T03:17:07.1232869Z computing email addresses for Cc section
2023-03-30T03:17:07.1233336Z Using SmtpHost URL: smtp.live.com
2023-03-30T03:17:07.1233629Z Parsed Url: smtp://smtp.live.com
2023-03-30T03:17:07.1233891Z Host: smtp.live.com
2023-03-30T03:17:07.1234140Z HostName: smtp.live.com
2023-03-30T03:17:07.1234365Z Port: null
2023-03-30T03:17:07.1234594Z Protocol: smtp:
2023-03-30T03:17:07.1234839Z Using HostName: smtp.live.com and port: 587
2023-03-30T03:17:28.2684104Z MailError: Error: connect ETIMEDOUT 204.79.197.212:587
2023-03-30T03:17:28.2684401Z MailError: Error: connect ETIMEDOUT 204.79.197.212:587
2023-03-30T03:17:28.2684832Z MailError: Error: connect ETIMEDOUT 204.79.197.212:587
2023-03-30T03:17:28.2685019Z MailError: Error: connect ETIMEDOUT 204.79.197.212:587
2023-03-30T03:17:28.2685995Z at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
2023-03-30T03:17:28.2686401Z at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
2023-03-30T03:17:28.2686958Z at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
2023-03-30T03:17:28.2687381Z at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
2023-03-30T03:17:28.2687926Z at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
2023-03-30T03:17:28.2688332Z at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
2023-03-30T03:17:28.2688675Z at throw (native)
2023-03-30T03:17:28.2688802Z at throw (native)
2023-03-30T03:17:28.2689255Z at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
2023-03-30T03:17:28.2689618Z at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
2023-03-30T03:17:28.2689999Z at process._tickCallback (internal/process/next_tick.js:109:7)
2023-03-30T03:17:28.2691568Z at process._tickCallback (internal/process/next_tick.js:109:7)
2023-03-30T03:17:28.2692170Z Task Processing Complete.
2023-03-30T03:17:28.2700066Z (node:3380) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: connect ETIMEDOUT 204.79.197.212:587
2023-03-30T03:17:28.2780609Z ##[section]Finishing: Send Email Report Always

Group Test Summary by "Test file"

The "Group Test Summary" field only contains options for Priority and Run, neither of which are useful to us.
When we view the test results in the pipeline we use the option to view results by Test file. Please could test file be an option for the email too?

O365 does not support Basic Auth

Hi. I had this task working fine with a Gmail account, but we need to use one of our own company accounts which are on Outlook 365.
I have a generic service connector configured in ADO, but this uses "basic authentication".
With our company email credentials in this connector the send email task is now giving error: Authentication unsuccessful, basic authentication is disabled.

It seems I need to use a task that supports modern auth, but I am using this task to email the test results from our release pipeline and I am unable to find an alternative pipeline extension that can do this.

Please could you advise? Many thanks.

Send Email failed due to Invalid log in error. ("SMTP Credentials" set to "O365 SMTPHost Connection for FPS")

"SMTP Credentials" in "Email Report" task set to "O365 SMTPHost Connection for FPS"

Error message
Using SmtpHost URL: smtp.office365.com:587
Parsed Url: smtp://smtp.office365.com:587
Host: smtp.office365.com:587
HostName: smtp.office365.com
Port: 587
Protocol: smtp:
Using HostName: smtp.office365.com and port: 587
MailError: Error: Invalid login: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [SG2PR02CA0073.apcprd02.prod.outlook.com]
MailError: Error: Invalid login: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [SG2PR02CA0073.apcprd02.prod.outlook.com]
at ReportError (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at MailError (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
at EmailSender. (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
at throw (native)
at rejected (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
MailError: Error: Invalid login: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [SG2PR02CA0073.apcprd02.prod.outlook.com]
MailError: Error: Invalid login: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [SG2PR02CA0073.apcprd02.prod.outlook.com]
at ReportError (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at MailError (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
at EmailSender. (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
at throw (native)
at rejected (D:\a_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
Task Processing Complete.
(node:3436) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: Invalid login: 535 5.7.139 Authentication unsuccessful, the user credentials were incorrect. [SG2PR02CA0073.apcprd02.prod.outlook.com]

Email Notification to Azure Ad Group (DL) not working

Hi,
When I keep individuals email address in toAddress field, It work as expected and email recived. However when I changed toAddress to use Azure AD Group Name or Email address, The Task work fine without any error but no-one in AD group receives email .

Thanks,
Rajesh

Using extension for Supply Chain project

Hi,
We are planning to use this extension in our supply chain project as we are moving existing repo->pipeline from Universal Store ADO to Supply Chain ADO. To install this in ADO our admin want to know about the supportability of this extension. As the extension is last updated in March 2020 are there any active updates related to bugs or security? What is the process to engage for any support for this extension. We are internal to Microsoft.

Why Authentication is required

Hi Microsoft,

I installed your extension, "Email Report Extension," and I want to send an email to the SMTP relay inside the company and the extension requires provided authentication?
2021-09-06T14:32:05.8629050Z MailError: Error: Missing credentials for "LOGIN" 2021-09-06T14:32:05.8629050Z MailError: Error: Missing credentials for "LOGIN"

Why do I need to provide authentication?
Would you please provide DropDown with options SMTP Authentication

  1. No
  2. Yes

When I choose "No" then don't take credentials from the Service Connection.

Regards,
Marko

XML/HTML tags present in Test Result errors are not getting parsed correctly

Observed Output in Email:

  Test steps 2 and 3:<br/>Mismatch with reference account object: Expected accountObj.Name to be<br/>"MORTIMER" with a length of 8, but<br/>"apie2etrialprod-d847a1" has a length of 22, differs near "api" (index 0).

Expected Output:
  | Test steps 2 and 3:
Mismatch with reference account object: Expected accountObj.Name to be:
"MORTIMER" with a length of 8, but
"apie2etrialprod-d847a1" has a length of 22, differs near "api" (index 0).
-- | --

Fails with HTTP 401 - Unauthorized

Hi, I am using this extension for sending Test results from AzureDevOps build pipeline. I am facing an issue using the tool. This could be more a question than an issue.

Problem#1
I added SMTP in "Service Connection - Generic". My SMTP is configured for Anonumous Auth. I left the Service Connection creds to empty. It failed with following message.

401 - Unauthorized: Access is denied due to invalid credentials.

Do you know if the extension works with anonymous auth on SMTP?

Problem#2
I tried configure SMTP with Authentication and updated service connection details to use Creds provided. It still keeps failing with the same message

401 - Unauthorized: Access is denied due to invalid credentials.

Is there a way to look at detailed logs whether it fails on SMTP or on the extension itself?

From the Stacktrace below, it looks like it fails on extension itself. Is there a way to see detailed logs to figure what is wrong?

Stacktrace:

Node Version: v6.10.3
Fetching data for email report
Retry : 1 : Error:

401 - Unauthorized: Access is denied due to invalid credentials.

at RestClient.<anonymous> (d:\b\4\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\node_modules\typed-rest-client\RestClient.js:202:31)
at next (native)
at fulfilled (d:\b\4\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\node_modules\typed-rest-client\RestClient.js:6:58)
at process._tickCallback (internal/process/next_tick.js:109:7) statusCode: 401 }

##[section]Finishing: Send Email Report Always

How to add/configure from address in the email report task variables

Hi, As per our requirement we need to send an email once the Functional testing executed via pipeline and we also need to send the test results in email. So we have installed the "Email Report Extension " from marketplace and configured the Generic service connection with sendgrid credentials. But while executing the pipeline

We are receiving below error

MailError: Error: Message failed: 550 MIME message is missing 'From' header
MailError: Error: Message failed: 550 MIME message is missing 'From' header
at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
at throw (native)
at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
MailError: Error: Message failed: 550 MIME message is missing 'From' header
MailError: Error: Message failed: 550 MIME message is missing 'From' header
at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
at throw (native)
at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
Task Processing Complete.
(node:4040) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: Message failed: 550 MIME message is missing 'From' header

MailError: Error: connect ETIMEDOUT

Hi,

I have been using this extension for my pipeline, and I have been facing the following error since 01/29/2022. Could you give me any pointer on how to resolve the error?

Starting: EmailReport
Task : Email Report
Description : Send rich email report for test results and for tasks in this stage
Version : 1.1.8
Author : Microsoft Corporation
Help : Sets 'EmailReportTask.EmailSent' variable to true if it sent email successfully. Learn More

Node Version: v6.17.1
Fetching data for email report
Fetched test owners data
No changes found for pipelineId - 13603
Fetched release data
Created report view model
Creating report message
CurrentDir: D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\htmlreport
Loading Email Template: D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\htmlreport\EmailTemplate.xslt
Total Test count is 0. Setting outcome percentage to 0
Creating summary group viewmodel for 1
computing email addresses for to section
No changeset owner mail addresses
computing email addresses for Cc section
Using SmtpHost URL: smtp.live.com
Parsed Url: smtp://smtp.live.com
Host: smtp.live.com
HostName: smtp.live.com
Port: null
Protocol: smtp:
Using HostName: smtp.live.com and port: 587
MailError: Error: connect ETIMEDOUT 204.79.197.212:587
MailError: Error: connect ETIMEDOUT 204.79.197.212:587
MailError: Error: connect ETIMEDOUT 204.79.197.212:587
at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
at throw (native)
at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
Task Processing Complete.
MailError: Error: connect ETIMEDOUT 204.79.197.212:587
at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
at throw (native)
at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
(node:5780) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: connect ETIMEDOUT 204.79.197.212:587

sending mail to multiple addresses

when writing in the "mail to" section more than one address (addr1;addr2) the mail is sent to a big distribution group which I never inserted anywhere.

E-Mail "From" field is not available

E-Mails sent by the task have no sender email.
How can i set it?
In Outlook the sender is "unknown" (blank) and therefore the email is maked as spam by the anti-virus software.
Because there is no sender email, i can not add it to the whitelist.

Can you support screenshot attached to email report?

Hi there,

I'm using email report task to send test results. But I need to attach the screeshot to the email report. So I forked this repo and made some change to send email report with the first image attachement.

Here is my email report.
image

Is it possible to add this feature to email report task?

support Linux

It would be great if this task(Email Report) would support Linux agents too

Error

I am getting following error in the Release pipeline.
2020-04-10T22:35:29.8370293Z ##[section]Starting: Result : Scale test
2020-04-10T22:35:29.8378819Z ==============================================================================
2020-04-10T22:35:29.8379194Z Task : Email Report
2020-04-10T22:35:29.8379551Z Description : Send rich email report for test results and for tasks in this stage
2020-04-10T22:35:29.8379895Z Version : 1.1.8
2020-04-10T22:35:29.8380171Z Author : Microsoft Corporation
2020-04-10T22:35:29.8381713Z Help : Sets 'EmailReportTask.EmailSent' variable to true if it sent email successfully. Learn More
2020-04-10T22:35:29.8382423Z ==============================================================================
2020-04-10T22:35:29.8478866Z ##[error]File not found: '/home/vsts/work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/Index.js'
2020-04-10T22:35:29.8483248Z ##[section]Finishing: Result : Sparta Scale test within vnet

File not found Issue and attach a file

Hi,

I added email report extension recently but I'm getting "File not found: '/home/vsts/work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/Index.js'" error.
Can you please help me here. Also, can you please let me know if I can attach any file with email notification with the same extensions.
I'm getting default notification when my job gets failed/success so; do I need to setup smtp also to use this email extensions.
Details screen shot is here -

==============================================================================
Task : Email Report
Description : Send rich email report for test results and for tasks in this stage
Version : 1.1.8
Author : Microsoft Corporation
Help : Sets 'EmailReportTask.EmailSent' variable to true if it sent email successfully. Learn More

##[error]File not found: '/home/vsts/work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/Index.js'
Finishing: EmailReport

Send Email Report Always - Not Running

"Send Email Report Always" Task not running on Job completion. No errors reported. Below is the logs. Can someone help, I am newly setting up the azure pipeline.

Evaluating: succeeded()
Result: False

Can this be used if SMTP doesnt require login credentials

Hi,
Our SMTP server at work does not require login credentials. I was able to create the endpoint connection by just not entering the username/password fields. But the actual Send Email Report build task the SMTP credentials field is required and i dont know what to put there.

Thank you,

Karl

Email Task is Not working after configuring via Azure Devops Pipeline

Hi,

I have installed Email Report Extension for one of my Project. I tried Configuring the SMTP connection as well but its not sending email to mentioned user. Below is the error log I am getting in pipeline

Using HostName: smtp.sendgrid.net and port: 587 MailError: Error: Message failed: 550 MIME message is missing 'From' header MailError: Error: Message failed: 550 MIME message is missing 'From' header MailError: Error: Message failed: 550 MIME message is missing 'From' header MailError: Error: Message failed: 550 MIME message is missing 'From' header at ReportError (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9) at ReportError (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9) at MailError (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9) at MailError (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9) at EmailSender.<anonymous> (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23) at EmailSender.<anonymous> (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23) at throw (native) at throw (native) at rejected (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65) at rejected (D:\a\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65) at process._tickCallback (internal/process/next_tick.js:109:7) at process._tickCallback (internal/process/next_tick.js:109:7) (node:608) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: Message failed: 550 MIME message is missing 'From' header Task Processing Complete.

Please anyone can help me to resolve this error.

Certificate Error in Email Report Extension

We are getting an error related to a certificate when trying to run Email Report Extension. It has always worked for us in the past, but this started happening recently. I am not sure how a certificate is coming into play here. I have tried to create a new PAT and Service Connection to see if that might be the problem, but we still see the same error. I'm wondering if the certificate is something internal? Here is a copy of the log output. Please advise:

2020-06-01T23:51:28.6785027Z ##[section]Starting: Send Email Report
2020-06-01T23:51:28.6898988Z ==============================================================================
2020-06-01T23:51:28.6899306Z Task : Email Report
2020-06-01T23:51:28.6899628Z Description : Send rich email report for test results and for tasks in this stage
2020-06-01T23:51:28.6899920Z Version : 1.1.8
2020-06-01T23:51:28.6900155Z Author : Microsoft Corporation
2020-06-01T23:51:28.6900682Z Help : Sets 'EmailReportTask.EmailSent' variable to true if it sent email successfully. Learn More
2020-06-01T23:51:28.6901258Z ==============================================================================
2020-06-01T23:51:29.3894546Z Node Version: v6.17.1
2020-06-01T23:51:29.4292429Z Fetching data for email report
2020-06-01T23:51:29.8096165Z Fetched test owners data
2020-06-01T23:51:30.0266537Z Getting Test summary data for test run - Tests results for OC.Inventory.Tests.ProdAll 060120_045014 1 in OC.Inventory.Prod.DM3
2020-06-01T23:51:30.1960994Z Fetching last release by completed environment id - 7006548 and branch id refs/heads/master
2020-06-01T23:51:30.7998530Z Considering one of [1443761,1443748,1443702,1443676,1443651,1443632,1443621,1443596,1443568,1443539,1443523,1443505,1443480,1443466,1443451,1443433,1443419,1443397,1443384,1443366,1443350,1443314,1443296,1443278,1443263,1443239,1443199,1443084,1442978,1442896,1442878,1442854,1442817,1442782,1442731,1442696,1442610,1442537,1442501,1442401,1442354,1442312,1442275,1442231,1442201,1442176,1442152,1442138,1442131,1442122] as previous completed release for 1443793
2020-06-01T23:51:30.9276268Z Getting changes between releases 1443793 & 1443761
2020-06-01T23:51:30.9280435Z Fetching changes between releases - 1443761 & 1443793
2020-06-01T23:51:31.2479892Z No changes found between releases - 1443761 & 1443793
2020-06-01T23:51:31.2480297Z Fetched release data
2020-06-01T23:51:31.2711431Z Created report view model
2020-06-01T23:51:31.2711798Z Creating report message
2020-06-01T23:51:31.2712141Z CurrentDir: E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\htmlreport
2020-06-01T23:51:31.2712718Z Loading Email Template: E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\htmlreport\EmailTemplate.xslt
2020-06-01T23:51:31.2713171Z Creating summary group viewmodel for 1
2020-06-01T23:51:31.3737841Z computing email addresses for to section
2020-06-01T23:51:31.3753864Z computing email addresses for Cc section
2020-06-01T23:51:31.3754289Z Using SmtpHost URL: smtphost.redmond.corp.microsoft.com
2020-06-01T23:51:31.3754752Z Parsed Url: smtp://smtphost.redmond.corp.microsoft.com
2020-06-01T23:51:31.3759748Z Host: smtphost.redmond.corp.microsoft.com
2020-06-01T23:51:31.3760074Z HostName: smtphost.redmond.corp.microsoft.com
2020-06-01T23:51:31.3760281Z Port: null
2020-06-01T23:51:31.3760465Z Protocol: smtp:
2020-06-01T23:51:31.3760746Z Using HostName: smtphost.redmond.corp.microsoft.com and port: 587
2020-06-01T23:51:31.4302523Z MailError: Error: unable to verify the first certificate
2020-06-01T23:51:31.4302972Z MailError: Error: unable to verify the first certificate
2020-06-01T23:51:31.4303487Z at ReportError (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
2020-06-01T23:51:31.4304136Z at MailError (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
2020-06-01T23:51:31.4304780Z at EmailSender. (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
2020-06-01T23:51:31.4305186Z at throw (native)
2020-06-01T23:51:31.4305585Z at rejected (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
2020-06-01T23:51:31.4306048Z at process._tickCallback (internal/process/next_tick.js:109:7)
2020-06-01T23:51:31.4306406Z MailError: Error: unable to verify the first certificate
2020-06-01T23:51:31.4307762Z MailError: Error: unable to verify the first certificate
2020-06-01T23:51:31.4308237Z at ReportError (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
2020-06-01T23:51:31.4308887Z at MailError (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
2020-06-01T23:51:31.4309624Z at EmailSender. (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
2020-06-01T23:51:31.4310034Z at throw (native)
2020-06-01T23:51:31.4310399Z at rejected (E:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
2020-06-01T23:51:31.4310855Z at process._tickCallback (internal/process/next_tick.js:109:7)
2020-06-01T23:51:31.4311110Z Task Processing Complete.
2020-06-01T23:51:31.4402798Z (node:49100) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: unable to verify the first certificate
2020-06-01T23:51:31.4525880Z ##[section]Finishing: Send Email Report

Error: ENOENT: no such file or directory, open '/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport\EmailTemplate.xslt

Getting below error on ubuntu machine. Can you help on this?

{ Error: ENOENT: no such file or directory, open '/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport\EmailTemplate.xslt' 2022-04-27T14:12:18.7692107Z at Error (native) 2022-04-27T14:12:18.7692929Z at Object.fs.openSync (fs.js:642:18) 2022-04-27T14:12:18.7693760Z at Object.fs.readFileSync (fs.js:510:33) 2022-04-27T14:12:18.7695437Z at HTMLReportCreator.createHtmlReport (/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport/HTMLReportCreator.js:19:27) 2022-04-27T14:12:18.7697274Z at ReportManager.<anonymous> (/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/ReportManager.js:32:64) 2022-04-27T14:12:18.7698273Z at next (native) 2022-04-27T14:12:18.7699577Z at fulfilled (/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/ReportManager.js:4:58) 2022-04-27T14:12:18.7700652Z at process._tickCallback (internal/process/next_tick.js:109:7) 2022-04-27T14:12:18.7701637Z errno: -2, 2022-04-27T14:12:18.7702482Z code: 'ENOENT', 2022-04-27T14:12:18.7703278Z syscall: 'open', 2022-04-27T14:12:18.7704579Z path: '/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport\\EmailTemplate.xslt' } 2022-04-27T14:12:18.7706747Z (node:6865) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open '/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport\EmailTemplate.xslt' 2022-04-27T14:12:18.7707962Z Total Test count is 0. Setting outcome percentage to 0 2022-04-27T14:12:18.7708555Z Creating summary group viewmodel for 1 2022-04-27T14:12:18.7710285Z { Error: ENOENT: no such file or directory, open '/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport\EmailTemplate.xslt' 2022-04-27T14:12:18.7711201Z at Error (native) 2022-04-27T14:12:18.7711734Z at Object.fs.openSync (fs.js:642:18) 2022-04-27T14:12:18.7712369Z at Object.fs.readFileSync (fs.js:510:33) 2022-04-27T14:12:18.7713767Z at HTMLReportCreator.createHtmlReport (/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport/HTMLReportCreator.js:19:27) 2022-04-27T14:12:18.7715974Z at ReportManager.<anonymous> (/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/ReportManager.js:32:64) 2022-04-27T14:12:18.7716786Z at next (native) 2022-04-27T14:12:18.7717891Z at fulfilled (/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/ReportManager.js:4:58) 2022-04-27T14:12:18.7718788Z at process._tickCallback (internal/process/next_tick.js:109:7) 2022-04-27T14:12:18.7719910Z errno: -2, 2022-04-27T14:12:18.7720530Z code: 'ENOENT', 2022-04-27T14:12:18.7721123Z syscall: 'open', 2022-04-27T14:12:18.7722149Z path: '/mnt/vss/_work/_tasks/EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105/1.1.8/htmlreport\\EmailTemplate.xslt' } 2022-04-27T14:12:18.7722913Z Task Processing Complete.

MailError while sending Email : "Invalid login: 535 5.7.3 Authentication unsuccessful"

Hi Team,

Although I am using correct credential for sending email but still I am getting below error while running this task in Azure DevOps release pipeline.
Can you please look into it and let me know if I am missing anything or Is there any other requirement for sending email?

Using Generic connection to set up Setup SMTP Endpoint
Server URL : https://outlook.office365.com/EWS/Exchange.asmx ( NOTE : This is not public SMTP server)
Agent Pool : Azure Pipeline.
Error Message :

_2020-05-01T19:13:50.9606439Z Host: outlook.office365.com
2020-05-01T19:13:50.9606806Z HostName: outlook.office365.com
2020-05-01T19:13:50.9607122Z Port: null
2020-05-01T19:13:50.9607425Z Protocol: smtp:
2020-05-01T19:13:50.9608226Z Using HostName: outlook.office365.com and port: 587
2020-05-01T19:13:56.0715522Z MailError: Error: Invalid login: 535 5.7.3 Authentication unsuccessful [XXXXXX.namprd13.prod.outlook.com]
2020-05-01T19:13:56.0717044Z MailError: Error: Invalid login: 535 5.7.3 Authentication unsuccessful [XXXXXX.namprd13.prod.outlook.com]
2020-05-01T19:13:56.0717722Z MailError: Error: Invalid login: 535 5.7.3 Authentication unsuccessful [XXXXXX.namprd13.prod.outlook.com]
2020-05-01T19:13:56.0719012Z at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
2020-05-01T19:13:56.0719704Z MailError: Error: Invalid login: 535 5.7.3 Authentication unsuccessful [XXXXXX.namprd13.prod.outlook.com]
2020-05-01T19:13:56.0720908Z at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
2020-05-01T19:13:56.0721649Z at ReportError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
2020-05-01T19:13:56.0722902Z at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
2020-05-01T19:13:56.0723656Z at MailError (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\MailError.js:6:9)
2020-05-01T19:13:56.0724639Z at throw (native)
2020-05-01T19:13:56.0725158Z at EmailSender. (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:66:23)
2020-05-01T19:13:56.0728008Z at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
2020-05-01T19:13:56.0728497Z at throw (native)
2020-05-01T19:13:56.0729381Z at process._tickCallback (internal/process/next_tick.js:109:7)
2020-05-01T19:13:56.0729961Z at rejected (D:\a_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\EmailSender.js:5:65)
2020-05-01T19:13:56.0731413Z (node:3792) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MailError: Error: Invalid login: 535 5.7.3 Authentication unsuccessful [XXXXXX.namprd13.prod.outlook.com]
2020-05-01T19:13:56.0732182Z at process.tickCallback (internal/process/next_tick.js:109:7)
2020-05-01T19:13:56.0733006Z Task Processing Complete.

SSL Certificates

No way to skip SSL Certificate checks:

Node Version: v6.17.1
(node:10272) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: unable to verify the first certificate
DataProviderError: Error fetching data using TestOwnersDataProvider: unable to verify the first certificate
DataProviderError: Error fetching data using TestOwnersDataProvider: unable to verify the first certificate
at ReportError (C:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\ReportError.js:6:9)
at DataProviderError (C:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\exceptions\DataProviderError.js:6:9)
at ReportProvider. (C:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\providers\ReportProvider.js:54:41)
at throw (native)
at rejected (C:\agent_work_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\providers\ReportProvider.js:5:65)
at process._tickCallback (internal/process/next_tick.js:109:7)
InnerError:unable to verify the first certificate: Error: unable to verify the first certificate
at Error (native)
at TLSSocket. (_tls_wrap.js:1092:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:609:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)
MissingDataError: Unable to fetch all data for generating report. Not Sending report.
MissingDataError: Unable to fetch all data for generating report. Not Sending report.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.