For enabling this follow the steps:
- Manage
jenkins>Systemthen scroll down find E-mail Notification - On SMTP server:
smtp.gmail.com - Default user e-mail suffix:
@gmail.com - Click on Advanced. On Click on Use SMTP Authentication then provide username(email) & password(use app password other may fail)
- Click on SSL
- On SMTP Port:
465this the port for gmail - In Reply-To Address you can use another gmail on which reply will come
- Test it check if its working fine -> Test configuration by sending test e-mail
When your done then if your build failed. You'll get message like this:
If any job occurs error then the pipeline will stop there won't move forward: