Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40895

How to get consolidated email for Jenkins build-pipeline projects

    • Bundles management UI Sprint

      I am running 4 jobs in my Build-Pipeline project and I am trying to send consolidated email for all job information like console output, build version, git changes, etc...
      In my current configuration I have configured email-ext template for all 4 jobs So, I am getting 4 emails each and every build. I dont want to spam my mailbox. Is there any way to consolidate all 4 jobs information and send a single email even if jobs fail or success.

      Regards,
      Raja

          [JENKINS-40895] How to get consolidated email for Jenkins build-pipeline projects

          If they are separate jobs then no other than switch to the new pipeline stuff that uses a groovy script

          David van Laatum added a comment - If they are separate jobs then no other than switch to the new pipeline stuff that uses a groovy script

          @david,

          If I understood correctly, you are asking me to create new pipeline project instead of build-pipeline and add groovy script for all stages.?

          Can you share some reference to get collective stage information..

          --Raja

          rajasekaran radhakrishnan added a comment - @david, If I understood correctly, you are asking me to create new pipeline project instead of build-pipeline and add groovy script for all stages.? Can you share some reference to get collective stage information.. --Raja

          Is there any option to create consolidated email for Build-Pipeline projects??

          --Regards,
          Raja

          rajasekaran radhakrishnan added a comment - Is there any option to create consolidated email for Build-Pipeline projects?? --Regards, Raja

          Is there any option to create consolidated email for Build-Pipeline projects?? Or Jenkins pipeline is the only option to get consolidated email.

          --Raja

          rajasekaran radhakrishnan added a comment - Is there any option to create consolidated email for Build-Pipeline projects?? Or Jenkins pipeline is the only option to get consolidated email. --Raja

          I believe it is possible to write scripts to access upstream job info etc so in theory you could get all info in the last build but that will only work if it gets to the last build

          David van Laatum added a comment - I believe it is possible to write scripts to access upstream job info etc so in theory you could get all info in the last build but that will only work if it gets to the last build

          @David,

          Thanks for your input I had implemented this passing shell script and it is working as expect.

          rajasekaran radhakrishnan added a comment - @David, Thanks for your input I had implemented this passing shell script and it is working as expect.

            davidvanlaatum David van Laatum
            rajraja rajasekaran radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: