• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • mailer-plugin
    • None
    • Jenkins: 1.519
      Email-ext plugin: 2.30.2
      Browsers: Chromium, Firefox

      When saving the recipients in the Post Build Actions > E-mail Notification, the value in the field is not saved.

      However it does work if I
      1. Fill in the details in both the Post Build Actions > E-mail Notification
      2. and enter the same details under Build Settings > E-mail Notification
      3. Save job config, the value is then saved
      4. I can then go back and configure the job, remove\uncheck Build Settings > E-mail Notification and save, the value is then save in Post Build Actions > E-mail Notification only

      But after all that i make a change to the job somewhere else and save the recipients are lost again, and i have to go through the above process again.

          [JENKINS-19194] Recipients not being saved

          christof w. created issue -

          Alex Earl added a comment - - edited

          Email Notification is not email-ext, its the Mailer plugin. Email-ext is labeled as "Editable Email Notification" in the post-build actions.

          Alex Earl added a comment - - edited Email Notification is not email-ext, its the Mailer plugin. Email-ext is labeled as "Editable Email Notification" in the post-build actions.

          Alex Earl added a comment -

          Reassigning component based on description of the issue "Email Notification" which is NOT email-ext.

          Alex Earl added a comment - Reassigning component based on description of the issue "Email Notification" which is NOT email-ext.
          Alex Earl made changes -
          Component/s New: mailer [ 17522 ]
          Component/s Original: email-ext [ 15538 ]
          Alex Earl made changes -
          Assignee Original: Alex Earl [ slide_o_mix ]

          I believe we're hitting this issue too with Jenkins v1.525 and Mailer Plugin v1.5.0. This seems to affect only one job at this point. I did have the Email-ext plugin installed, tried uninstalling it and still see the same problem.

          The steps I took are: -

          1. Add Email Notification post build action
          2. Enter a single email address
          3. Click save.

          In the UI and in config.xml for the job I still see an empty recipient list. Let me know if there is any information I can provide that will help debug.

          Gautam Jayaprakash added a comment - I believe we're hitting this issue too with Jenkins v1.525 and Mailer Plugin v1.5.0. This seems to affect only one job at this point. I did have the Email-ext plugin installed, tried uninstalling it and still see the same problem. The steps I took are: - 1. Add Email Notification post build action 2. Enter a single email address 3. Click save. In the UI and in config.xml for the job I still see an empty recipient list. Let me know if there is any information I can provide that will help debug.

          Going through the following steps seemed to fix it for me,

          1. Remove the post build task
          2. Set the email notification in build settings
          3. Verify that the recipient list is saved correctly
          4. Remove build settings and re-add post build task

          I think this is what may have fixed it, but I was changing a lot of settings to get this to work.

          Gautam Jayaprakash added a comment - Going through the following steps seemed to fix it for me, 1. Remove the post build task 2. Set the email notification in build settings 3. Verify that the recipient list is saved correctly 4. Remove build settings and re-add post build task I think this is what may have fixed it, but I was changing a lot of settings to get this to work.

          I have also been affected by this issue since I updated my Jenkins installation from 1.509.4 to 1.532.1 (the latest "stable" .deb).

          Antonio Garcia-Dominguez added a comment - I have also been affected by this issue since I updated my Jenkins installation from 1.509.4 to 1.532.1 (the latest "stable" .deb).
          Antonio Garcia-Dominguez made changes -
          Summary Original: Recepients not being saved New: Recipients not being saved

          Alex Earl added a comment -

          I'm pretty sure this has to do with the plugin overriding newInstance in the descriptor. For newer versions of Jenkins, this causes an issue when you also have a @DataBoundConstructor. When I update the pom.xml to use 1.532.1 as the core version and remove the newInstance, things work correctly and the recipients are saved. I'll try and determine a better way to do it so that its more backward compatible.

          Alex Earl added a comment - I'm pretty sure this has to do with the plugin overriding newInstance in the descriptor. For newer versions of Jenkins, this causes an issue when you also have a @DataBoundConstructor. When I update the pom.xml to use 1.532.1 as the core version and remove the newInstance, things work correctly and the recipients are saved. I'll try and determine a better way to do it so that its more backward compatible.

            Unassigned Unassigned
            wenic christof w.
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: