How to send attachments in Jenkins emails | Configure Jenkins to send an attachment in email

Опубликовано: 05 Октябрь 2024
на канале: Software Testing Step-by-Step
30,758
131

How to send attachments in Jenkins emails or Configure Jenkins to send an attachment in email using Editable Email Notification plugin in Jenkins to attach a file with the email.
With the help of Ant pattern we can send attachment in Jenkins Email.Please follow my example to send and attachment in Jenkins email.

How to Restart Jenkins in windows
   • Jenkins Tutorials | How to restart Je...  

Gmail SMTP configurations

Enter Admin Email address as your gmail address
Default user e-mail suffix - @gmail.com
smtp.gmail.com
465
UTF-8
Use SSL Authentication
Enter gmail id
Enter password
Test Email by click on Test Email Configuration

Under Jenkins Job

Select Post Build Action as Editable Email Notifications
Under Attachment enter this format,suppose you want to get png files from Screenshot folder then
follow this format

**/Screenshot/Register.png

Suppose you want to send all png files in email then follow below format

**/Screenshot/*.png


How to configure Jenkins to send an attachment in email,
Jenkins Email-ext (Editable Email Notifications)
How to configure Jenkins to send a file as Email attachment
jenkins pipeline email attachment
attach file from work space Jenkins