The Custom Email Notifier plugin by Devtron enables users to set automated email notifications to respective stakeholders of that specific CI/CD workflow. The Custom Email Notifier can be integrated into pre/post stages of Devtron CI/CD workflows to inform team members about the current status and other pipeline events. Some key use cases of this plugin can be:
- Configuring notifications at pre/post stages to update teams on task completion status, such as sending vulnerability scanning reports.
- Setting up automated alerts at the runbooks of auto-remediation using jobs.
Before integrating the Custom Email Notifier plugin, you must ensure that you have properly configured notifications in your Devtron setup. For detailed notification configuration steps, please refer to the Devtron documentation at: Devtron Notifications.
{% hint style="warning" %} If you want to integrate the Custom Email Notifier plugin into pre/post stages of CI/CD pipelines, navigate to the Custom Webhook Notifier plugin and follow the steps mentioned. {% endhint %}
- Navigate to the Jobs section, click Create, and choose Job.
- In the 'Create job' window, enter Job Name and choose a target project.
- Click Create Job.
- In the 'Configurations' tab, fill the required fields under the 'Source code' section and click Save.
- In Workflow Editor, click + Job Pipeline.
- Give a name to the workflow and click Create Workflow.
- Click Add job pipeline to this workflow.
- Fill the required fields in ‘Basic configuration’ tab.
- Go to the ‘Tasks to be executed’ tab.
- Under ‘Tasks’, click the + Add task button.
- Select the Custom Email Notifier plugin.
- Enter the following user inputs with appropriate values.
Enter the name of your task
e.g., Email Notifier
Add a brief explanation of the task and the reason for choosing the plugin. Include information for someone else to understand the purpose of the task.
e.g., The Custom Email Notifier plugin is integrated for sending an automated email notifications to relevant stakeholders.
Variable | Format | Description | Sample Value |
---|---|---|---|
CONFIG_TYPE | STRING | Type of notification configuration. SES or SMTP | SES |
CONFIG_NAME | STRING | Name of the notification configuration to be used. This should match an existing notification configuration in Devtron. | prod-deploy-notify |
EMAIL_IDS | STRING | Comma-separated list of email addresses that should receive the notification. | [email protected],[email protected] |
Here you can set conditions to execute or skip the task. You can select Set trigger conditions
for the execution of a task or Set skip conditions
to skip the task.
Custom Email Notifier will not be generating an output variable.
Click Update Pipeline.