From ea7fe44630af075631df28d641c74969eff14f7c Mon Sep 17 00:00:00 2001 From: Madhusudan V B Date: Tue, 6 May 2025 09:35:13 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17faac6e..ca1240ef 100644 --- a/README.md +++ b/README.md @@ -681,6 +681,42 @@ That's it! You've successfully installed and set up Grafana to work with Prometh 1. **Implement Notification Services:** - Set up email notifications in Jenkins or other notification mechanisms. + - 🔧 Step-by-Step Guide: +- Install Email Extension Plugin +- Go to Jenkins Dashboard → Manage Jenkins → Plugins. +- Install "Email Extension Plugin" (if not already installed). +- Configure System Email Settings +- Navigate to: Manage Jenkins → Configure System +- Scroll to "Extended E-mail Notification" + +Fill in: +- SMTP server (e.g., smtp.gmail.com for Gmail) +- Use SMTP Authentication (if required) +- Username/Password +- Default user e-mail suffix (e.g., @example.com) +- Test Configuration to verify email delivery + +## Add Email Step in Jenkins Pipeline ## +Include the following in the post section of your Jenkinsfile: +post { + always { + emailext attachLog: true, + subject: "${currentBuild.result} - ${env.JOB_NAME}", + body: """ + Build Status: ${currentBuild.result} + Job: ${env.JOB_NAME} + Build Number: ${env.BUILD_NUMBER} + URL: ${env.BUILD_URL} + """, + to: 'your-email@example.com' + } +} + +- Test Your Pipeline +- Commit changes and trigger the Jenkins job. +- Verify the email notification is received after the build. + + # Phase 6: Kubernetes @@ -755,4 +791,4 @@ To deploy an application with ArgoCD, you can follow these steps, which I'll out **Phase 7: Cleanup** 1. **Cleanup AWS EC2 Instances:** - - Terminate AWS EC2 instances that are no longer needed. \ No newline at end of file + - Terminate AWS EC2 instances that are no longer needed. From 713e57c6d3c3ace099935f3c5eb73abf904c6c3c Mon Sep 17 00:00:00 2001 From: Madhusudan V B Date: Tue, 6 May 2025 09:36:44 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ca1240ef..6bb12ba6 100644 --- a/README.md +++ b/README.md @@ -698,6 +698,8 @@ Fill in: ## Add Email Step in Jenkins Pipeline ## Include the following in the post section of your Jenkinsfile: + +```bash post { always { emailext attachLog: true, @@ -711,6 +713,7 @@ post { to: 'your-email@example.com' } } +``` - Test Your Pipeline - Commit changes and trigger the Jenkins job.