This Pipelines Task sends email notifications from your Pipelines Step.
Prerequisites
This task requires a SMTP Credentials integration.
Usage
Basic:
- task: jfrog/email-notify@v0.1.0 id: email-notify input: emailIntegration: "int_smtp" to: "user@jfrog.com" subject: "JFrog Pipelines Email task" message: "Hello there, sent via JFrog Pipe email Task"
By default, the task will use JFROG_CLI_BUILD_NAME
and JFROG_CLI_BUILD_NUMBER
environment variables when publishing the build info.
Input Variables
Name | Required | Default | Description |
---|---|---|---|
emailIntegration | true | SMTP credentials integration name. | |
to | true |
| Comma separated list of destination email addresses. |
subject | false |
| Subject for the email message. |
message | false |
| Email message to be sent. |
Output Variables
None
Exported Environment Variables
None
How does it work?
The task uses nodemailer module to send an email message.
Creating Less Secure Apps
Most of the email services like Gmail and Yahoo have disabled the option of sending mails via less secure means, which will affect sending mails via third party applications.
There are other emails hosts like zoho, proton, which still allow sending emails via less secure way and custom domain emails should still allow this. Make sure you have the right host, port and email addresses.
License
This project is licensed under Apache 2.0 license.