Steps To Set Up Email Notification in Jenkins
Steps To Set Up Email Notification in Jenkins
3. SMTP Configuration:
4. Credentials:
5. Test Configuration:
6. Save Changes:
o Once the test email is successfully sent and received, click on "Save" to
apply the changes.
7. Sample Scipt
post {
always {
script {
<body>
</div>
<p>Check the <a href="${BUILD_URL}">console
output</a>.</p>
</div>
</body>
</html>"""
emailext (
body: body,
to: '[email protected]',
from: '[email protected]',
replyTo: '[email protected]',
mimeType: 'text/html',
attachmentsPattern: 'trivy-report.html'