Jenkins Beginner Tutorial - How to Trigger Job with Email | Poll Mailbox Trigger Plugin

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 119

  • @cloudtechlearn9622
    @cloudtechlearn9622 6 ปีที่แล้ว +4

    Really a great explanation... i would request you, if you can post a video for how to write a jenkins file for the same process .

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      I will do that Mitesh

  • @ashishpaithankar4832
    @ashishpaithankar4832 3 ปีที่แล้ว

    Hello Raghav, Thanks for video. Really Helpful

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Ashish, most welcome

  • @shubhamkumarjha3734
    @shubhamkumarjha3734 3 ปีที่แล้ว +1

    Great sir thanks for making video 🔥🔥

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Most welcome Shubham

  • @jonastad2532
    @jonastad2532 5 ปีที่แล้ว +1

    Raghav - Good video set by the way !!. It would be beneficial for your students if you add Github hooks on build initiation which is commonly used in the industry.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Thanks Jonas, taken your feedback. will add.

  • @denistester3723
    @denistester3723 4 ปีที่แล้ว

    Thank you, Ragahv, for your explanation.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Most welcome Denis

  • @suchishah8332
    @suchishah8332 3 ปีที่แล้ว

    HI ,Thank you so much for such nice explanation .

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      You are welcome Suchi

  • @nancyzong5626
    @nancyzong5626 5 ปีที่แล้ว

    Wonderful videos. I finished the list and will go through other list. Helped a lot!!!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Glad to know this Nancy. Best wishes

  • @isaacmelendez6582
    @isaacmelendez6582 3 ปีที่แล้ว +1

    Hello there, how are you?
    I have a question regarding the attatchments, how does it work in Poll Mailbox Trigger? I do not know how to find the attatchments, thank you so much

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว +1

      Hi Isaac, I will try to do a session

    • @isaacmelendez6582
      @isaacmelendez6582 3 ปีที่แล้ว

      @@RaghavPal That would be really helpfull, I am looking forward for it, thanks.

  • @samoutswinger5693
    @samoutswinger5693 6 ปีที่แล้ว

    Hello Raghav, thanks for putting up such a helpful series of videos on jenkins, Could you please add or refer to some videos on test specific jobs, where we could confgure the job pass criteria, based on pass rate etc.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Sam, is this something similar you are looking for - learn2automate.blog/2017/05/19/how-to-set-jenkins-job-status-based-on-test-case-pass/

  • @lakshmiy4103
    @lakshmiy4103 2 ปีที่แล้ว

    Thanks for the clear explanation.
    Question : If the build fails then how should we proceed or how to fix.
    Thanks in advance.

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      will need to check the logs or reports

  • @itmazter
    @itmazter 4 ปีที่แล้ว +1

    Connecting to the mailbox...
    Error : javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
    im getting this error

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Hari, You need to provide your credentials in jenkins. Check th-cam.com/video/mGXGIOpKAos/w-d-xo.html

    • @itmazter
      @itmazter 4 ปีที่แล้ว

      @@RaghavPal yeah added now in credentials and facing same error. do i need to configure anything in gmail ?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      In Gmail you should set allow less secure apps in settings. Use a test gmail account.

  • @inturimadhurichowdary4402
    @inturimadhurichowdary4402 6 ปีที่แล้ว +2

    Thank you sir
    It is very informative

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว +1

      Thanks for watching

  • @rahulgupta-fp5vy
    @rahulgupta-fp5vy 3 ปีที่แล้ว

    awesome ! Thank you for the video

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      You're welcome Rahul

  • @gopich1065
    @gopich1065 6 ปีที่แล้ว

    really helpful video. please do video on basic python scripting required for devops. thankyou

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Sure Gopi, will note this

  • @JitendraSingh-ow3vg
    @JitendraSingh-ow3vg 4 ปีที่แล้ว

    Sonarqube tutorials are not available here please if you can add please add and Gerrit also

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Sure Jitendra, will check on this

    • @JitendraSingh-ow3vg
      @JitendraSingh-ow3vg 4 ปีที่แล้ว

      @@RaghavPal you are awesome teacher or trainer of automation.... Really I like your channel. Love your all videos. If you can add sonarqube and Gerrit then I'll be thankful for you

  • @amarnadh8217
    @amarnadh8217 6 ปีที่แล้ว +1

    Hi Raghav.. Please make a video on master and slave in Jenkins..
    Thank you..

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Amar, will take this up in some time

    • @amarnadh8217
      @amarnadh8217 6 ปีที่แล้ว +1

      @@RaghavPal thank you Raghav

  • @pankajjoshi4679
    @pankajjoshi4679 3 ปีที่แล้ว

    Hi Raghav,
    can you please tell me how to download the attachment using Poll Mailbox Trigger Plugin?
    I have tried the Attachment option but it is not working.
    Thank you in advance.

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว +1

      Hi Pankaj, I will plan a session, for now will need to check online examples

    • @pankajjoshi4679
      @pankajjoshi4679 3 ปีที่แล้ว

      @@RaghavPal Thank you, Raghav. That would be really helpful. So many peoples are facing the same problem but there is no solution for this problem.

  • @swapnilmahadik9896
    @swapnilmahadik9896 4 ปีที่แล้ว

    Hello, thanx for the wonderful information. Can you tell me how can I configured it for office 365

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Swapnil, have you tried, let me know what issues you faced, I will check more on this

    • @swapnilmahadik9896
      @swapnilmahadik9896 4 ปีที่แล้ว

      @@RaghavPal yes Raghav I have been trying this since 1 month, but not yet succeed. Is this because of two factor authentication?

  • @ankitkachhava3652
    @ankitkachhava3652 6 ปีที่แล้ว +1

    Hi Raghav
    Kindly create a video on how to configure SonarQube on Jenkins and generate a reports from scratch.
    Thanks

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      I will try to do this Ankit

    • @ankitkachhava3652
      @ankitkachhava3652 6 ปีที่แล้ว

      @@RaghavPal yes sir please we are having urgent requirement so meanwhile can you share some important link to refer.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Ankit, I checked, there are several links for this
      th-cam.com/video/jh7utASgKj4/w-d-xo.html
      docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
      www.evoketechnologies.com/blog/sonarqube-integration-jenkins-pipelines/
      www.tothenew.com/blog/integrating-sonarqube-with-jenkins/

  • @vedanshsinghal
    @vedanshsinghal 4 ปีที่แล้ว

    hi Raghav,
    I am facing a lot of errors and issues in setting up email-triggers, even in the earlier video too. I spent hours on the internet to solve it but can't.
    kindly help as this is the last topic left for the tutorial to finish

    • @vedanshsinghal
      @vedanshsinghal 4 ปีที่แล้ว

      can you help with team viewer

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Vesansh, what exactly is the error, Are you inside company VPN or using proxy.

    • @vedanshsinghal
      @vedanshsinghal 4 ปีที่แล้ว

      Automation Step by Step - Raghav Pal
      javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      These are the errors and i am not using vpn or proxy

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Vedansh, check if this helps
      www.mastertheboss.com/cool-stuff/jenkins/solving-jenkins-sslhandshakeexception
      support.cloudbees.com/hc/en-us/articles/217078498-PKIX-path-building-failed-error-message
      stackoverflow.com/questions/24563694/jenkins-unable-to-find-valid-certification-path-to-requested-target-error-whil

    • @vedanshsinghal
      @vedanshsinghal 4 ปีที่แล้ว

      Automation Step by Step - Raghav Pal i already checked these links but they’re not helping 🥺🥺

  • @prashantht.v8289
    @prashantht.v8289 5 ปีที่แล้ว +1

    Hi Raghav, Can we trigger multiple jobs by sending a single e-mail assuming both the jobs have same configurations

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Prashanth, this should trigger the jobs as configured, However I have not tried it, you can give it a try.
      github.com/jenkinsci/poll-mailbox-trigger-plugin
      Moreover, if your need is to trigger 2 jobs, you can also configure the other job to be triggered after 1st job

  • @vijayjeyaram85
    @vijayjeyaram85 5 ปีที่แล้ว

    Hi Raghav...Really Great video.I tried the same step as you explained it was worked in free style project, where as its not working in pipeline project (i have followed same steps in pipeline project).Can you please guide me how to trigger the pipeline project using "Poll Mail Box" if possible. Thanks...

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Vijay, Pls check the logs, will need more information to troubleshoot this.

  • @MrGmessi
    @MrGmessi 4 ปีที่แล้ว

    thanks for the video it was really useful!
    1 question, how can you recieve (download) the attached files in the triggering emails?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Riese, I will need to check on this. Try looking at online examples

  • @rtusar
    @rtusar 5 ปีที่แล้ว

    how to read the email content ?
    In execute windows batch command if i write -- echo "%pmt_content%" its not working

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Tusar, you can try following syntax
      Windows - %parametername%
      *nux/mac - $parametername
      ${parametername}
      "${parametername}"

  • @rckaushik
    @rckaushik 5 ปีที่แล้ว

    Hi Ragahv, thanks for your tutorials. I have successfully configured and tested Poll Mailbox Trigger Plugin. Only one question. If the mail remains in the mailbox then it will again trigger as per cron schedule. How to stop the same.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Kaushik, once it reads an email it marks is as read so it does not process it again. Pls check github.com/jenkinsci/poll-mailbox-trigger-plugin

  • @tapas511
    @tapas511 6 ปีที่แล้ว

    Awesome video ,its very use full

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Glad to know this Tapas

  • @maximilianoagustinmaschero8401
    @maximilianoagustinmaschero8401 5 ปีที่แล้ว +1

    HI Raghav, thanks for the video! It is very helpful! I have one question for you buddy, is it possible to reply to the email address that triggered the job? I'd like to reply to it attaching an artifact generated by the job (e.g. a report file)

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Max, yes you can, there are email notification plugins in Jenkins that you can check - th-cam.com/video/DULs4Wq4xMg/w-d-xo.html
      wiki.jenkins.io/display/JENKINS/Email-ext+plugin

  • @tamilselvan8343
    @tamilselvan8343 5 ปีที่แล้ว

    Hi Raghav I need some clarification.can we customise our email notification in jenkins.if it's there means can u share that link.how to customise email notifications???

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Tamil, you can check this - th-cam.com/video/DULs4Wq4xMg/w-d-xo.html
      And there are other email plugins on jenkins that you can try

  • @khaledlimem4531
    @khaledlimem4531 4 ปีที่แล้ว

    I have a problem with the Password in the E-mail Notification (manage jenkins) it change when saving the right password ? how do I fix this ?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Khaled, I did not completely get your issue, What does the logs say

  • @prabhakarvalluru2889
    @prabhakarvalluru2889 4 ปีที่แล้ว

    Hi Ragahv,
    Thank you very much for your tutorials. The way of your explanation is excellent. Only one thing I am looking is do we have any documnetation for these tutorials. If there please share the path or website that would be really helpful for revision especially when attending interviews.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว +1

      Hi Prabhakar, I have added all notes in the Description section below the video. You can also check all here - automationstepbystep.com/

  • @montybagati2616
    @montybagati2616 5 ปีที่แล้ว

    Hi .. I am getting a connection refusal error. What am i doing wrong here ? . I can see there is no option for smtp as i want to poll mail trough my smtp email

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Monty, do you have any error details or logs. Pls check all the steps as mentioned in the video.

  • @sonambhutada6703
    @sonambhutada6703 6 ปีที่แล้ว

    Is it possible to run multiple nodes at the same time wherein all nodes have configured for same subject?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Yes Sonam, you can run multiple nodes at same time

    • @sonambhutada6703
      @sonambhutada6703 6 ปีที่แล้ว

      Through email???
      If we send one email and three nodes are configured with same subject so it should trigger three build at the same time???
      Its not working for us..

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      will need to check and understand the details of setup and scenario

  • @suresh45215
    @suresh45215 6 ปีที่แล้ว

    Hi Raghav,
    can we add emailids filter in this plugin who can only have access to send email for triggring jenkins job??
    pls revert

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Suresh, I could not find any such settings in the plugin parameters. I see you have posted this on StackOverflow
      stackoverflow.com/questions/51320705/jenkins-poll-mailbox-trigger
      Lets wait if some one replies. Do let me know

    • @suresh45215
      @suresh45215 6 ปีที่แล้ว +1

      sure raghav!!

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Just a thought, one of the workarounds may be to use a domain where there are restrictions and only accepts mails from a group of people. Yout IT team should be able to do that

    • @venkatasairkduddukuru6010
      @venkatasairkduddukuru6010 6 ปีที่แล้ว

      Automation Step by Step - Raghav Pal hi Raghav, how do we take the parameter from email body.
      I could see that you have given the parameter as Name=Raghav , but in my case the parameter in the body will be like Name:Raghav(it is colon not the equals, how does it work any help on this ??)

  • @sanyogitawange2113
    @sanyogitawange2113 5 ปีที่แล้ว

    Hi Raghav , i had one doubt on which email id we should send mail ?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Sanyogita, you can use any test email. Process is shown in the video

  • @venkatasairkduddukuru6010
    @venkatasairkduddukuru6010 6 ปีที่แล้ว

    Hi Raghav,
    Thanks for this video and this is very informative. However, I would like to know how do we take the parameter from email body.
    I could see that you have given the parameter as Name=Raghav , but in my case the parameter in the body will be like Name:Raghav(it is colon not the equals, how does it work any help on this ??)

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Kumar, I replied you over email

    • @venkatasairkduddukuru6010
      @venkatasairkduddukuru6010 6 ปีที่แล้ว

      Hi Raghav, I have installed this plugin and it worked fine earlier. But now actually it stopped working. Where the plug is able to read the mail box and I could see the match found message on Jenkins, but it couldn’t trigger the job automatically. Are there any settings which I am missing and need to be configured as global settings.
      Please help and thanks in advance.

  • @SKAcharya-nn1gw
    @SKAcharya-nn1gw 9 หลายเดือนก่อน

    Facing a problem with office365, could not connect,can any one help me??

    • @RaghavPal
      @RaghavPal  9 หลายเดือนก่อน

      will need details

    • @SKAcharya-nn1gw
      @SKAcharya-nn1gw 9 หลายเดือนก่อน

      @@RaghavPal Generally, my office365 outlook account is Azure AD based i.e work account, so i gets a authentication failure when ever I try to connect, can you provide me some solution, also does this plugin monitor outbox/sent items??

    • @RaghavPal
      @RaghavPal  9 หลายเดือนก่อน

      Here are some points
      1. Authentication Failure with Office 365 (Azure AD):
      - When configuring email notifications in Jenkins, you'll need to provide SMTP server details. For Office 365 (Azure AD) accounts, follow these steps:
      - Go to Manage Jenkins > Configure System.
      - Scroll down to the E-mail Notification section.
      - Configure the SMTP details:
      - SMTP server: Set it to `"smtp.office365.com"`.
      - Port: Use port `587`.
      - Use SSL: Uncheck this option.
      - Use TLS: Check this option.
      - SMTP Authentication: Provide your Office 365 email address and password.
      - If you encounter authentication issues, ensure that your Office 365 account allows SMTP access and that you're using the correct credentials.
      2. Monitoring Outbox/Sent Items:
      - By default, Jenkins doesn't directly monitor your email client's outbox or sent items.
      - However, you can configure Jenkins to send emails based on build status (success/failure) or other triggers.
      - Jenkins will send emails to the recipients you specify in the job configuration.
      - If you want to track sent emails, consider using a separate tool (like an email client or monitoring software) to monitor your email account's sent items.
      3. Testing Email Configuration:
      - After configuring your email settings, use the Test Configuration button in Jenkins to verify that emails are being sent successfully.
      - Jenkins will send a test email to the specified recipients.
      4. Additional Tips:
      - If you encounter issues, check your firewall settings to ensure that Jenkins can connect to the SMTP server.
      - Consider using an App Password for SMTP authentication if your Office 365 account has multi-factor authentication (MFA) enabled.
      Remember to adjust the SMTP settings according to your Office 365 account details. Once configured, Jenkins will send email notifications based on your job configurations.

  • @amarnadh8217
    @amarnadh8217 6 ปีที่แล้ว

    Hi Raghav,
    Polling is working but very late.. If I receive mail now job is running after 40 mins some times after 1hour.
    Please suggest the solution

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      HI Amar, If you look at this section th-cam.com/video/DWlAQe57uz8/w-d-xo.html , When you goto advanced there is a field to set schedule, Here you can provide a cron expression for setting the interval. You can set it to check after every 1 min, 5 min or as per your need

    • @amarnadh8217
      @amarnadh8217 6 ปีที่แล้ว

      @@RaghavPal yes Raghav I set it for 1 min only..
      Sometimes it is working awesome but sometimes not..
      It is able to find the mail but the job is not getting triggered..

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      This is strange Amar, not sure if there is some network issues you might be facing.

  • @sachintak9600
    @sachintak9600 4 ปีที่แล้ว

    HTTP ERROR 403 No valid crumb was included in the request

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Sachin, check this
      github.com/spinnaker/spinnaker/issues/2067

  • @shreyasms6786
    @shreyasms6786 6 ปีที่แล้ว

    Hi Raghav need your help not able to run my project through jenkins

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Shreyas, pls tell me the issue in detail with logs if you have