Configure Email Notification In Jenkins | How To Send Email From Jenkins Job

  Рет қаралды 87,036

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 144
@godgrace2014
@godgrace2014 3 жыл бұрын
Thanks for all knowledge sharing Mukesh, you are doing world best work.
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thank you mate
@chamanthuladeepika9116
@chamanthuladeepika9116 3 жыл бұрын
thanks man for this detailed video...its really worth it
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Glad it was helpful! Thanks Deepika
@deepakrai5175
@deepakrai5175 3 жыл бұрын
Thanks Mukesh , excellent video . Really helpful !
@reviewparknation
@reviewparknation 12 күн бұрын
Thank you for the video. I want to attach the Allure report to the email for each build. I am using the Freestyle project. Is there any way to achieve this? Any suggestions?
@niranjankarri448
@niranjankarri448 2 жыл бұрын
Thanks Mukesh!!! Really helpful
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Always welcome Niranjan
@sathishKumar-rb2sv
@sathishKumar-rb2sv 3 жыл бұрын
Thank you very much for your Email notification video, got it and done
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Great Sathish 👍
@ManuelJordan317
@ManuelJordan317 3 жыл бұрын
Excellent video, a cold beer for you friend!
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thank you Manuel Cheers!
@ManuelJordan317
@ManuelJordan317 3 жыл бұрын
@@Mukeshotwani I am going to watch your complete playlist!
@roshnithakre9798
@roshnithakre9798 3 жыл бұрын
Hi Mukesh, Thanks u so much for making jenkins videos ,it is so helpful. Could you please upload one more video for how we can execute groovy scripts using jenkins
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Roshni, Thank you so much. Yes, I have planned videos for Java, Python, JS and Groovy.
@kunalkabare1342
@kunalkabare1342 2 жыл бұрын
Hi Mukesh, Thanks for this video. It is helpful. I am trying to attach few reports from my Build Artefacts but unable to do it as by default directory in attachment option is the project workspace. Can you please help here on how I can navigate to that executed build artefacts from attachment option or any other solution to this. Thanks in advance..!
@kshitijvairale4877
@kshitijvairale4877 3 жыл бұрын
Hello Mukesh Thanks for video I want to add extent report in the email body Is there any way to do so. I am successfully able to add it in attachment but not in body section
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Yes You can add extent report too as attachment, I will try to add videos.
@AnngrahDhar-yc9rg
@AnngrahDhar-yc9rg Жыл бұрын
I am not able to send mail to gmail through Jenkins My 2 step verification is off Allow less secure app option is not available anymore. What should I do now?
@Mukeshotwani
@Mukeshotwani Жыл бұрын
I have another video on this fix thie issue. You need to create app password for this now.
@amerkhan-kw8bi
@amerkhan-kw8bi Жыл бұрын
​@@Mukeshotwani can you please add link here for this issue so it will easy for us to refer and resolve this issue
@AbhijnanKundu
@AbhijnanKundu 8 ай бұрын
@@Mukeshotwani Can you please share this link?
@rajeshrj6538
@rajeshrj6538 3 жыл бұрын
Hi mukesh, My test configuration email is getting triggered, but post build email is not getting triggered. In logs it is showing mail is sent only. Not sure why. I' using a fresh account with less secure turned off only. Any idea?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Rajesh, have you applied same changes in ext email configuration?
@rajeshrj6538
@rajeshrj6538 3 жыл бұрын
@@Mukeshotwani Port number was wrong by mistake. Figured it out. Thank you mukesh
@zpytta
@zpytta Жыл бұрын
very very nice session
@Mukeshotwani
@Mukeshotwani Жыл бұрын
Thanks buddy there is some change in email configuration from google here is the video for the same kzbin.info/www/bejne/iqLMc3miiph0ebc
@saikumar-tp8pj
@saikumar-tp8pj 3 жыл бұрын
Hi mukesh, In multibranch pipeline how to do post build action for email notification
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Sai, good question. For multi branch pipeline you can still send email. You can use try catch finally in your jecnkins file. I have video on Jenkins file. Please watch the same. www.jenkins.io/doc/book/pipeline/syntax/#post-conditions node { stage('Example') { try { sh 'exit 1' } catch (exc) { echo 'Something failed, I should sound the klaxons!' throw } } }
@caffeinejavacode1475
@caffeinejavacode1475 3 жыл бұрын
Hello! How to do if I want to configure email notification for each teammate which run own pipeline on his brunch?
@AbhijnanKundu
@AbhijnanKundu 8 ай бұрын
I am unable to connect with gmail smtp using my email address and password. Looks like we can not change into Less Secure App anymore also. Is there any solution to still use smtp and gmail ?
@mohammadkhan-bg7fo
@mohammadkhan-bg7fo 2 ай бұрын
Same issue I’m facing too
@mohammadkhan-bg7fo
@mohammadkhan-bg7fo 2 ай бұрын
@Mukesh could you please help us ?
@Sravan508
@Sravan508 2 жыл бұрын
hi, In Extendable email notifications after enter port no it is not showing the smtp mail text box? it is showing credentials and add button jenkins credentials asking? how to add this?
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Please share screenshot to my email mukeshotwani@learn-automation.com
@truongnguyennhat8983
@truongnguyennhat8983 2 жыл бұрын
Same here, what should I do now? Thanks
@enesaydin7310
@enesaydin7310 2 жыл бұрын
did you solve the problem?if you, please share with me
@swatimishra6781
@swatimishra6781 3 жыл бұрын
How to setup build time stamp variable , I have setup but it's is not working in report part out is coming $build_timestap.html in report . Please help me
@yaseenbaba3389
@yaseenbaba3389 Жыл бұрын
Hi Bro Google says : This setting is not available for your account for Less secure app access Any solution ?
@Arul-i6i
@Arul-i6i 23 күн бұрын
i am getting unable to find a certification path error in console what can i do now? I disabled two step factor authentication in my personal gmail account.
@Mukeshotwani
@Mukeshotwani 23 күн бұрын
Hi Arul, now we have different way to send email via gmail. You need to generate app password for sending email.
@keerthivarudu8775
@keerthivarudu8775 2 жыл бұрын
Hi Mukesh, I have configured Microsoft teams channel email address in jenkins job to trigger the build results notifications in Teams from Jenkins. In output I'm able to see thats its sending the mail to the given email addresses. But I could not see the results in Teams channel. Can you please help here.
@gaminiajay3215
@gaminiajay3215 3 жыл бұрын
Is it possible to upload build(APK in my case) from jenkins to Onedrive? In post build action?
@tamilkumaran4825
@tamilkumaran4825 Жыл бұрын
Hi brother , I have exception while I click the build once it will not launch the browser it throw the exception sessionNotCreatedException .can you please help me for this issue
@harishshanigarapu6183
@harishshanigarapu6183 3 жыл бұрын
I'm looking for auto it implementation using maven dependency
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Harish what is the requirment.
@harishshanigarapu6183
@harishshanigarapu6183 3 жыл бұрын
@@Mukeshotwani Hi Sir, Thank You for replying. I have to click on application which is there on my desktop and have to enter credentials I have added auto it dependency in pom.xml I just want to know how to write the script How do I get scite script editor Using the dependency
@franciscarol7031
@franciscarol7031 Жыл бұрын
Hi Sir, I am facing the specified issue "Connection error sending email, retrying once more in 10 seconds... Connection error sending email, retrying once more in 10 seconds... Failed after second try sending email" please advise me on how to resolve this issue.
@shilpamaria828
@shilpamaria828 2 жыл бұрын
Hi Mukesh, is there anyway I can trigger mail from Jenkins based on a condition in shell script ( i.e when 1 website (from a list of sites) is down)
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Yes Shilpa, here is sample script Note- Assuming SMTP server is configured #!/bin/sh # # email a message # $1 = action # $2 = count # $3= user@myplace.com email_it() { echo "Action: $1 count: $2" | \ /usr/bin/mailx -s "Action notification" "$3" } if [ $action = "A" ] ; then email_it "ACTION WAS A" 42 "mukesh@some.com" else email_it "ACTION WAS B" 42 "otwani@some.com" fi
@ankitagarwal6014
@ankitagarwal6014 3 жыл бұрын
Sir how can I monitor Jenkins? Also if there are any issues like memory full issue, disk space issue etc so I want a notification email for that. Can I get this from Jenkins?
@Account-fi1cu
@Account-fi1cu Жыл бұрын
is it possible to send emails in jenkins for successful checks that my exe is doing ? ie not just for builds
@mocanada304
@mocanada304 2 жыл бұрын
Gmail does not allow less secure apps anymore to access it using just username and password.
@shashiqa4869
@shashiqa4869 2 жыл бұрын
you have to activate two verification and use app pwd in jenkin.
@sahilarya1187
@sahilarya1187 Жыл бұрын
yes, same bro even i m also facing the same thing.
@aravindjuloori4501
@aravindjuloori4501 3 жыл бұрын
Hi Mukesh, I have tried sending email from jenkins after running the job. I did the configuration as per the lecture and tried,After running the job in logs i see email sent but actually email is not coming. could you please help me on this issue
@shilpashravge8083
@shilpashravge8083 3 жыл бұрын
Thanks a lot for this ,👍
@albinks7320
@albinks7320 3 жыл бұрын
Hi Mukesh, one question, I am not getting emails on post-build action, but got test mail while testing the configuration initially. Any idea ?
@sethu9518
@sethu9518 3 жыл бұрын
Check if SMTP details(port dettails,smtp server details), email user details are correctly entered in Extended E-mail Notification and E-mail Notification section present in Manage Jenkins -> Configure System
@shashidhardevraj
@shashidhardevraj 3 жыл бұрын
Hi Mukesh, Thanks for this video. I am trying to send an email with screenshots about pass and failed test cases. From your video I can send URLs. Any suggestions please
@medhunhashini2920
@medhunhashini2920 3 жыл бұрын
Hi Mukesh . My sending email was success in jenkins but i am not receiving in my mail... can you clear me this problem?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Just extended email setting.
@ramchandramukkera5841
@ramchandramukkera5841 3 жыл бұрын
Hi Hashini, How you fix this issue ? For me also mail not sent to gmail.But build was success from Jenkins?
@ankitpanda4718
@ankitpanda4718 2 жыл бұрын
@@Mukeshotwani What does it mean. i already did all configuration. still its not working Help me out
@amrutansubej5029
@amrutansubej5029 2 жыл бұрын
In the console I can see email triggered is success but still mail is not sent. Test mail was sent successfully. Any suggestions?
@bhagyashreegade
@bhagyashreegade 2 жыл бұрын
try to add the same credentials(as you used in email Notification) in Extended email notification.
@abhaydeshpande3239
@abhaydeshpande3239 2 жыл бұрын
Not able to set Username and Password for Extended Email Notification section. Please help me.
@akashbhatt3223
@akashbhatt3223 3 жыл бұрын
Hi Mukhesh, Firstly thanks for the video.Recently I was trying to replicate the same in corporate network with their own smtp server and port,while testing configuration it throws error:sun.security.provider.certpath.SunCertPathBuilderException:unable to find valid certification path to requested target. Could you please help me to troublshoot this issue? Best Regards, Akash
@varunasthana1630
@varunasthana1630 3 жыл бұрын
Hello Mukesh, I am unable to send email from Jenkins. Please help. I have followed your instructions for Google account but I think I am unable to turn off 2-Step verification setting. Please help. Thanks, Varun
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Varun, please try with new account (fresh).
@rajeshrj6538
@rajeshrj6538 3 жыл бұрын
We can also create application password in the google security settings and use that generated password instead of your actual password. That will work even with 2 factor authentication
@sg8nj
@sg8nj 3 ай бұрын
Nice 😎
@Mukeshotwani
@Mukeshotwani 3 ай бұрын
Thanks mate
@AD_Shine
@AD_Shine Жыл бұрын
How can we make 3 different Jenkins jobs reply to same email (or 3 e-mails on same mail thread) ?
@muldon2
@muldon2 2 жыл бұрын
the post-build action section is not being showed in the newest version :/
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Is it ? Let me check ✅
@muldon2
@muldon2 2 жыл бұрын
Actually I figured It does not show in pipeline project..
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
@@muldon2 yes in pipeline you can add post build actions as pipeline code
@amazontrends6933
@amazontrends6933 Жыл бұрын
​@@Mukeshotwanican explain how to do in the pipeline job
@andrewarun2009
@andrewarun2009 3 жыл бұрын
How to mention failed test cases names in jenkins email subject? UFT is my testing tool
@anusha9039
@anusha9039 2 жыл бұрын
hii bro at present less secure app is not avilable..how should i
@amrutansubej5029
@amrutansubej5029 2 жыл бұрын
Use App password
@mrwiltofficial
@mrwiltofficial 2 жыл бұрын
Chrome: Google Account -> Manage Your Google Account -> Security -> App Password (Select app = mail and Select device = Windows Computer)
@poojashetty1290
@poojashetty1290 2 жыл бұрын
@@mrwiltofficial after generating app password what to do next ?
@anilyadav-ln8qu
@anilyadav-ln8qu Жыл бұрын
@@mrwiltofficial thank bro for suggestion and it's working
@anilyadav-ln8qu
@anilyadav-ln8qu Жыл бұрын
@@poojashetty1290 copy the password and paste its at password place
@rajendramahapatra3293
@rajendramahapatra3293 3 жыл бұрын
Can you please upload a video how we can send email by attaching HTML report (TestNG Report, Extent Report) in the email body?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Yes Rajendra, will do that for sure.
@sedhu8172
@sedhu8172 3 жыл бұрын
Sir, why u are not uploading video on Jenkins for last 3days
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
will upload today at 7
@shakiba4291
@shakiba4291 2 жыл бұрын
Less secure app access Some apps and devices use less secure sign-in technology, which makes your account vulnerable. You can turn off access for these apps, which we recommend, or turn it on if you want to use them despite the risks. Google will automatically turn this setting OFF if it’s not being used. This setting is no longer available.
@skincareroutine7609
@skincareroutine7609 2 жыл бұрын
What is solution for it ?
@abhilasha1289
@abhilasha1289 Жыл бұрын
Where is the first example where you created job? Please provide link
@Kolipakulajsvscprabhunathbunty
@Kolipakulajsvscprabhunathbunty 3 жыл бұрын
Getting authentication error while testing, given allow accees permission!!...
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Prabhunath, please try with new gmail account.
@educationalgeeks5999
@educationalgeeks5999 3 жыл бұрын
Sir do one Vedio on how to install Tomcat in Linux server
@cloudarchitect4424
@cloudarchitect4424 3 жыл бұрын
How to enable Use TLS option in Extended Email Configuration?
@naveenvasimalla6608
@naveenvasimalla6608 2 жыл бұрын
could you explain how can i setup in zoho mail
@ЯрославПолищук-ю7ж
@ЯрославПолищук-ю7ж 2 ай бұрын
how do I can to do this in script?
@Mukeshotwani
@Mukeshotwani 2 ай бұрын
Yes do you mean by pipeline script?
@uhsay1986
@uhsay1986 2 жыл бұрын
To help keep your account secure, from May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
@OtakuChamber
@OtakuChamber 2 жыл бұрын
you need to turn on 2factor authentication , followed by generating app password , use that generated app password instead of original mail password in Jenkins configuration and it will work. I tried it , it's working
@ikechukwujerome7357
@ikechukwujerome7357 2 жыл бұрын
@@OtakuChamber When i set this up in gmail and run the "Test configuration", the connection keeps timing out on my Jenkins. Any opinions on how to resolve this?
@aqua7vita
@aqua7vita 2 жыл бұрын
@@OtakuChamber Thank you so much for this help!
@muldon2
@muldon2 2 жыл бұрын
@@OtakuChamber thanks man, it worked !
@avtarsinghsangar8623
@avtarsinghsangar8623 Жыл бұрын
hello Bro can you please share your job or link for that video?
@katlinsage9371
@katlinsage9371 2 жыл бұрын
*Does this tool require smtp.?*
@matrixtechnology2376
@matrixtechnology2376 3 ай бұрын
thank you
@Mukeshotwani
@Mukeshotwani 3 ай бұрын
You're welcome
@rajwedhikar2955
@rajwedhikar2955 4 ай бұрын
thanks!
@Mukeshotwani
@Mukeshotwani 4 ай бұрын
Welcome!
@ambikajiroli5441
@ambikajiroli5441 3 жыл бұрын
While testing I am getting error "failed to send email"
@GoaUk365
@GoaUk365 2 жыл бұрын
1)Make sure MFA of Gmail is turned off 2)Go to - Gmail Manage you Google Account - Security tab- Less secure app access - click on ON . Less secure app access Some apps and devices use less secure sign-in technology, which makes your account vulnerable. You can turn off access for these apps, which we recommend, or turn it on if you want to use them despite the risks. Google will automatically turn this setting OFF if it’s not being used. Learn more Allow less secure apps: ON I Had the same issue but now its working by using above steps.
@mrmadang123
@mrmadang123 3 жыл бұрын
I solved the issue by upgrading token macro
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Awesome Madan
@pundlamahesh
@pundlamahesh 7 ай бұрын
How to get only failed testcase names via email through jenkins
@Mukeshotwani
@Mukeshotwani 7 ай бұрын
If you are using extent report then u can use filter
@educationalgeeks5999
@educationalgeeks5999 3 жыл бұрын
Tq tq tq you Sir
@gadgetttololilola8924
@gadgetttololilola8924 2 жыл бұрын
But how to attach report file to email?
@JogosEtudoMais
@JogosEtudoMais 3 жыл бұрын
💯💯
@ambikajiroli5441
@ambikajiroli5441 3 жыл бұрын
Hi Mukesh which password we need enter
@GoaUk365
@GoaUk365 2 жыл бұрын
Please use your email Password
@SaikatDas-h9f
@SaikatDas-h9f Жыл бұрын
How to connect with office mails?
@Mukeshotwani
@Mukeshotwani Жыл бұрын
You can get office SMTP server details and you can use the same.
@sravanigundepalli3513
@sravanigundepalli3513 10 ай бұрын
@@Mukeshotwani from where??
@Mukeshotwani
@Mukeshotwani 10 ай бұрын
@@sravanigundepalli3513 Hi Sravani, please connect with your IT team and explain your use case and request for SMTP server details.
@mrmadang123
@mrmadang123 3 жыл бұрын
Hi Mukesh, I am able to get email but, it not sending project name, just sending $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS! in subject, please suggest
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thanks Madan sometimes if jenkins version is not updated or plugin is not updated which can build such issues. Thanks once again for following series.
@anilyadav-ln8qu
@anilyadav-ln8qu Жыл бұрын
I'm facing problem sir ...plz help me ASAP C:\ProgramData\Jenkins\.jenkins\workspace\Mullti receipt email>mvn -version 'mvn' is not recognized as an internal or external command
@supriyaghatol6493
@supriyaghatol6493 Жыл бұрын
'mvn' is not recognized as an internal or external command is getting because Apache Maven is not install on your system
@SandeepSingh-hn6it
@SandeepSingh-hn6it Жыл бұрын
may restart your jenkins using go into cmd command prompt through admin and then: user command : net stop jenkins and net start jenkins
How to configure Email Notification in Jenkins | Send Email using Gmail SMTP server
12:03
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Build Maven Project Using Jenkins | Execute Maven Project In Jenkins
15:33
Send Email Notifications from Jenkins | Jenkins
15:27
DevOps Shack
Рет қаралды 6 М.
How Email Works
7:13
PowerCert Animated Videos
Рет қаралды 73 М.
Send Email Notification From Jenkins With HTML Report
23:20
EasyWay2Automation - SDET
Рет қаралды 6 М.