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

How to get consolidated email for Jenkins build-pipeline projects

    XMLWordPrintable

    Details

    • Sprint:
      Bundles management UI Sprint
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          davidvanlaatum 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

          Show
          davidvanlaatum 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
          Hide
          rajraja 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

          Show
          rajraja 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
          Hide
          rajraja rajasekaran radhakrishnan added a comment -

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

          --Regards,
          Raja

          Show
          rajraja rajasekaran radhakrishnan added a comment - Is there any option to create consolidated email for Build-Pipeline projects?? --Regards, Raja
          Hide
          rajraja 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

          Show
          rajraja 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
          Hide
          davidvanlaatum 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

          Show
          davidvanlaatum 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
          Hide
          rajraja rajasekaran radhakrishnan added a comment -

          @David,

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: