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

No e-mail when using other/template post-build steps

      We have several jobs which share Post-Build Actions.
      All jobs are MultiConfiguration Jobs.

      A main job (Let's call it e.g. MyMainJob) actually acts as a template job.
      The other (secondary) jobs use the Post-Build Actions from MyMainJob.

      1. When the main job build fails e-mail notifications are sent properly. We see info in the console output.
      2. When one of the other (secondary) jobs fails, the e-mail notifications are not sent. Nothing is shown in the console output either.

      Same count for any other e-mail that's supposed to be sent (Fixed, Unstable, ...)

      Relevant configuration of the email-ext is:

      • Fixed Project Recipient List
      • Attach Build Log: _Compress and Attach Build log
      • Trigger for matrix projects: Trigger only parent job
      • Triggers:
        • Failure - 1st (using default config)
        • Failure - Still (using default config)
        • Failure -> Unstable (Test Failures) (using default config)
        • Unstable (Test Failures) - 1st (using default config)
        • Unstable (Test Failures) - Still (using default config)
        • Unstable (Test Failures)/Failure -> Success (using default config)
      • other settings: default config

          [JENKINS-24537] No e-mail when using other/template post-build steps

          Tom Ghyselinck created issue -
          Tom Ghyselinck made changes -
          Component/s Original: emailext-template [ 18764 ]

          Daniel Beck added a comment -

          Template Project Plugin, or what is this about?

          Daniel Beck added a comment - Template Project Plugin, or what is this about?

          Alex Earl added a comment -

          If this is Template Project Plugin stuff as Daniel asked about, then its not an issue with email-ext, you would need to work with the Template Project Plugin devs to determine the issue.

          Alex Earl added a comment - If this is Template Project Plugin stuff as Daniel asked about, then its not an issue with email-ext, you would need to work with the Template Project Plugin devs to determine the issue.

          Hi,

          Thank you for the quick reply!

          No idea which plugin is causing the issue (Email-ext, MultiConfigurationJob, Template Project Plugin, ...).

          Quick summary:

          • Create MultiConfigurationJob mainJob
            • Use Email-ext in the Post-build Actions
          • Create MultiConfigurationJob secondaryJob
            • Use Post-build Actions from other Job -> select mainJob
          • In the mainJob, the e-mails are triggered / sent correctly, the secondaryJob doesn't show anything in the console from the email-ext plugin, neither are there e-mails sent.

          I hope this helps you guys decide where this should go,
          at least I will also add the template-plugin to the Components to trigger those developers...

          Thank you in advance!

          Tom Ghyselinck added a comment - Hi, Thank you for the quick reply! No idea which plugin is causing the issue ( Email-ext , MultiConfigurationJob , Template Project Plugin , ...). Quick summary: Create MultiConfigurationJob mainJob Use Email-ext in the Post-build Actions Create MultiConfigurationJob secondaryJob Use Post-build Actions from other Job -> select mainJob In the mainJob , the e-mails are triggered / sent correctly, the secondaryJob doesn't show anything in the console from the email-ext plugin, neither are there e-mails sent. I hope this helps you guys decide where this should go, at least I will also add the template-plugin to the Components to trigger those developers... Thank you in advance!
          Tom Ghyselinck made changes -
          Component/s New: template-project [ 15623 ]
          Labels Original: email-ext notification template New: email-ext multi-configuration notification template

          Alex Earl added a comment -

          This needs to be addressed by the template project plugin first.

          Alex Earl added a comment - This needs to be addressed by the template project plugin first.
          Alex Earl made changes -
          Assignee Original: Alex Earl [ slide_o_mix ]

          Alex Earl added a comment -

          I'm unable to reproduce this. I didn't setup a multiconfig job, but I did setup a template job and it worked just fine.

          Alex Earl added a comment - I'm unable to reproduce this. I didn't setup a multiconfig job, but I did setup a template job and it worked just fine.

          Alex Earl added a comment -

          Looks like it is specific to a multiconfiguration job. I created one and indeed, email-ext doesn't get called at all. Since email-ext doesn't get called, I don't think this is related to email-ext itself. It looks like template plugin's ProxyPublisher doesn't implement MatrixAggregatable, which may mean it won't work for multiconfiguration projects at all.

          Alex Earl added a comment - Looks like it is specific to a multiconfiguration job. I created one and indeed, email-ext doesn't get called at all. Since email-ext doesn't get called, I don't think this is related to email-ext itself. It looks like template plugin's ProxyPublisher doesn't implement MatrixAggregatable, which may mean it won't work for multiconfiguration projects at all.

            huybrechts huybrechts
            tom_ghyselinck Tom Ghyselinck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: