Re: email notification recipients list not saved.
Try upgrading your Maven Project Plugin. I had this same problem and upgrading from v2.0 to v2.1 of the Maven Project Plugin resolved the issue. On Wednesday, January 15, 2014 10:32:36 AM UTC-5, rop wrote: I am experiencing the same problem. When I go into a Jenkins-job, click Configure, then Save the job, the email-recipients field goes empty. We have 2 different Linux-servers with exactly the same jenkins-version: 1.532.1 HOWEVER: this error happens only on 1 of the servers, while the other works correct. So, apparently, it is not a general problem with the war-version, but happens under some specific circumstances only. Anyone here familiar with the Jenkins source-code, could you help point me to the code that executes when the Save-button is clicked? Then I can look it over and try figure out what the issue might be... Den fredagen den 3:e januari 2014 kl. 17:41:53 UTC+1 skrev Alessandro Ferrucci: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: email notification recipients list not saved.
I am experiencing the same problem. When I go into a Jenkins-job, click Configure, then Save the job, the email-recipients field goes empty. We have 2 different Linux-servers with exactly the same jenkins-version: 1.532.1 HOWEVER: this error happens only on 1 of the servers, while the other works correct. So, apparently, it is not a general problem with the war-version, but happens under some specific circumstances only. Anyone here familiar with the Jenkins source-code, could you help point me to the code that executes when the Save-button is clicked? Then I can look it over and try figure out what the issue might be... Den fredagen den 3:e januari 2014 kl. 17:41:53 UTC+1 skrev Alessandro Ferrucci: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: email notification recipients list not saved.
Hi, I also have this Problem. I am running Jenkins version 1.532.1 an the Mailer plugin is at version 1.8. The recipients can't be saved at the job configuration (and even not at the module configuration. In the logfile, there is no error. Kind regards, Marcel On Sunday, January 5, 2014 4:49:52 PM UTC+1, slide wrote: You didn't answer my question about what version of Mailer you have installed. On Jan 5, 2014 8:31 AM, Alessandro Ferrucci alessandr...@gmail.comjavascript: wrote: Hello, Just wanted to bump this thread in case anyone has a solution. thanks! Alessandro Ferrucci On Fri, Jan 3, 2014 at 11:41 AM, Alessandro Ferrucci alessandr...@gmail.com javascript: wrote: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- Signed, Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: email notification recipients list not saved.
Can you try downgrading Mailer to a previous version? On Mon, Jan 6, 2014 at 3:24 AM, m.hartwig.bc m.hartwig...@gmail.com wrote: Hi, I also have this Problem. I am running Jenkins version 1.532.1 an the Mailer plugin is at version 1.8. The recipients can't be saved at the job configuration (and even not at the module configuration. In the logfile, there is no error. Kind regards, Marcel On Sunday, January 5, 2014 4:49:52 PM UTC+1, slide wrote: You didn't answer my question about what version of Mailer you have installed. On Jan 5, 2014 8:31 AM, Alessandro Ferrucci alessandr...@gmail.com wrote: Hello, Just wanted to bump this thread in case anyone has a solution. thanks! Alessandro Ferrucci On Fri, Jan 3, 2014 at 11:41 AM, Alessandro Ferrucci alessandr...@gmail.com wrote: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- Signed, Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Website: http://earl-of-code.com -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: email notification recipients list not saved.
Hello, Just wanted to bump this thread in case anyone has a solution. thanks! Alessandro Ferrucci On Fri, Jan 3, 2014 at 11:41 AM, Alessandro Ferrucci alessandroferru...@gmail.com wrote: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- Signed, Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: email notification recipients list not saved.
You didn't answer my question about what version of Mailer you have installed. On Jan 5, 2014 8:31 AM, Alessandro Ferrucci alessandroferru...@gmail.com wrote: Hello, Just wanted to bump this thread in case anyone has a solution. thanks! Alessandro Ferrucci On Fri, Jan 3, 2014 at 11:41 AM, Alessandro Ferrucci alessandroferru...@gmail.com wrote: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- Signed, Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: email notification recipients list not saved.
Someone else posted something like this earlier I don't think there was a resolution to it. What version of the Mailer are you using? On Fri, Jan 3, 2014 at 9:41 AM, Alessandro Ferrucci alessandroferru...@gmail.com wrote: Hello, I'm running Jenkins 1.544 in standalone mode. I have a maven2/3 job configured and want to set email notifications under job configuration - Build Settings -Email Notification. If I attempt at setting an email address in the recipient list and clicking Apply, then Save. The email recipient list isn't saved. If I go back to configuration screen, the Email Notification checkbox is still checked, but the recipient list is empty. Jenkins doesn't log any errors/warnings in the log. If I open the job's config.xml, I can see that the email settings are correct for the checkboxes I have checked, but it has no recipient list XML element. The following is the Mailer snippet I see in the job's config.xml: reporters hudson.maven.reporters.MavenMailer dontNotifyEveryUnstableBuildtrue/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters Does anyone have any hints/suggestions as to what I can try in order to try to figure out what the issue is? Thanks! Alessandro Ferrucci -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Website: http://earl-of-code.com -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: Email notification recipients are not saved
I don't know what Build Settings is, what type of job are you using? Free style? Maven? Something else? Also, can you remind me what version of Jenkins you are using? Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 22:39 To: jenkinsci-users@googlegroups.com Subject: Re: Email notification recipients are not saved Thanks, that works for email-ext. But there's another problem with that: when I enter job configuration and save the project again the recipientList element in the email-ext block in config.xml is emptied. However, I might have found a workaround: when I set BOTH Build Settings and a Post-build action Email notification with the same variable the config.xml recipients element value stays even when I edit and save the project again. Now the first one tries to send email to $VARIABLE but the second one gets the expansion right. The element in config.xml is the same for both: recipients. Is it possible that there's a bug in Jenkins where one configuration element value overwrites the other? On Monday, May 20, 2013 5:17:11 PM UTC+3, slide wrote: For email-ext, you would use ${ENV, var=YOUR_VAR} Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 6:53 To: jenkins...@googlegroups.com javascript: Subject: Email notification recipients are not saved Hi list, I'm having a problem with Jenkins not saving the notification email recipients for a job. My setup: Jenkins 1.515 on Windows Server 2008, running standalone, started as a service. The job type is a Maven 2/3 project. I am using environment variables defined in Configure System -- Global Properties as my email notification recipients. The browser I use is the latest Chrome but the problem was same with IE10. There are two possibilities for specifying the repicipients in the job configuration: a checkbox in Build Settings and adding a Post-build action Email notification. The Build Settings creates a reporters block in the job config.xml: reporters hudson.maven.reporters.MavenMailer recipients$PROJECT1_MEMBERS/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters The recipients value IS saved correctly when using the Build Settings checkbox but environment variables are not expanded. Console log shows: Sending e-mails to: $PROJECT1_MEMBERS Finished: FAILURE When an email is configured by adding a Post-build action a publishers block is created in the config.xml: publishers hudson.tasks.Mailer plugin=mailer@1.4 recipients/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals /hudson.tasks.Mailer /publishers As you can see the recipients element is empty. Of course when running a job no emails are sent... The email-ext plugin is even worse: the first time I add an Editable Email Notification as a post-build action it does save the recipient in its recipientList element but the second time I edit the project the recipients are lost... There was a bug for something similar in JIRA ( https://issues.jenkins-ci.org/browse/JENKINS-15442) but it's marked as cannot reproduce and closed. Is there any way I can use an environment variable as the notification email recipient list in Jenkins? This is currently working in our old Hudson but I'm trying to migrate to Jenkins. Best regards, Antti -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Email notification recipients are not saved
It's Jenkins 1.515 on Windows Server 2008, running standalone, started as a service. The job type is a Maven 2/3 project. I am using environment variables defined in Configure System -- Global Properties as the email notification recipients. I've tried this with the latest Chrome and IE10. On Tuesday, May 21, 2013 9:03:58 AM UTC+3, slide wrote: I don't know what Build Settings is, what type of job are you using? Free style? Maven? Something else? Also, can you remind me what version of Jenkins you are using? Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 22:39 To: jenkins...@googlegroups.com javascript: Subject: Re: Email notification recipients are not saved Thanks, that works for email-ext. But there's another problem with that: when I enter job configuration and save the project again the recipientList element in the email-ext block in config.xml is emptied. However, I might have found a workaround: when I set BOTH Build Settings and a Post-build action Email notification with the same variable the config.xml recipients element value stays even when I edit and save the project again. Now the first one tries to send email to $VARIABLE but the second one gets the expansion right. The element in config.xml is the same for both: recipients. Is it possible that there's a bug in Jenkins where one configuration element value overwrites the other? On Monday, May 20, 2013 5:17:11 PM UTC+3, slide wrote: For email-ext, you would use ${ENV, var=YOUR_VAR} Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 6:53 To: jenkins...@googlegroups.com Subject: Email notification recipients are not saved Hi list, I'm having a problem with Jenkins not saving the notification email recipients for a job. My setup: Jenkins 1.515 on Windows Server 2008, running standalone, started as a service. The job type is a Maven 2/3 project. I am using environment variables defined in Configure System -- Global Properties as my email notification recipients. The browser I use is the latest Chrome but the problem was same with IE10. There are two possibilities for specifying the repicipients in the job configuration: a checkbox in Build Settings and adding a Post-build action Email notification. The Build Settings creates a reporters block in the job config.xml: reporters hudson.maven.reporters.MavenMailer recipients$PROJECT1_MEMBERS/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters The recipients value IS saved correctly when using the Build Settings checkbox but environment variables are not expanded. Console log shows: Sending e-mails to: $PROJECT1_MEMBERS Finished: FAILURE When an email is configured by adding a Post-build action a publishers block is created in the config.xml: publishers hudson.tasks.Mailer plugin=mailer@1.4 recipients/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals /hudson.tasks.Mailer /publishers As you can see the recipients element is empty. Of course when running a job no emails are sent... The email-ext plugin is even worse: the first time I add an Editable Email Notification as a post-build action it does save the recipient in its recipientList element but the second time I edit the project the recipients are lost... There was a bug for something similar in JIRA ( https://issues.jenkins-ci.org/browse/JENKINS-15442) but it's marked as cannot reproduce and closed. Is there any way I can use an environment variable as the notification email recipient list in Jenkins? This is currently working in our old Hudson but I'm trying to migrate to Jenkins. Best regards, Antti -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: Email notification recipients are not saved
Can you upload you global and job config XML files somewhere? Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 23:11 To: jenkinsci-users@googlegroups.com Cc: Antti Ollilainen Subject: Re: Email notification recipients are not saved It's Jenkins 1.515 on Windows Server 2008, running standalone, started as a service. The job type is a Maven 2/3 project. I am using environment variables defined in Configure System -- Global Properties as the email notification recipients. I've tried this with the latest Chrome and IE10. On Tuesday, May 21, 2013 9:03:58 AM UTC+3, slide wrote: I don't know what Build Settings is, what type of job are you using? Free style? Maven? Something else? Also, can you remind me what version of Jenkins you are using? Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 22:39 To: jenkins...@googlegroups.com javascript: Subject: Re: Email notification recipients are not saved Thanks, that works for email-ext. But there's another problem with that: when I enter job configuration and save the project again the recipientList element in the email-ext block in config.xml is emptied. However, I might have found a workaround: when I set BOTH Build Settings and a Post-build action Email notification with the same variable the config.xml recipients element value stays even when I edit and save the project again. Now the first one tries to send email to $VARIABLE but the second one gets the expansion right. The element in config.xml is the same for both: recipients. Is it possible that there's a bug in Jenkins where one configuration element value overwrites the other? On Monday, May 20, 2013 5:17:11 PM UTC+3, slide wrote: For email-ext, you would use ${ENV, var=YOUR_VAR} Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 6:53 To: jenkins...@googlegroups.com Subject: Email notification recipients are not saved Hi list, I'm having a problem with Jenkins not saving the notification email recipients for a job. My setup: Jenkins 1.515 on Windows Server 2008, running standalone, started as a service. The job type is a Maven 2/3 project. I am using environment variables defined in Configure System -- Global Properties as my email notification recipients. The browser I use is the latest Chrome but the problem was same with IE10. There are two possibilities for specifying the repicipients in the job configuration: a checkbox in Build Settings and adding a Post-build action Email notification. The Build Settings creates a reporters block in the job config.xml: reporters hudson.maven.reporters.MavenMailer recipients$PROJECT1_MEMBERS/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters The recipients value IS saved correctly when using the Build Settings checkbox but environment variables are not expanded. Console log shows: Sending e-mails to: $PROJECT1_MEMBERS Finished: FAILURE When an email is configured by adding a Post-build action a publishers block is created in the config.xml: publishers hudson.tasks.Mailer plugin=mailer@1.4 recipients/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals /hudson.tasks.Mailer /publishers As you can see the recipients element is empty. Of course when running a job no emails are sent... The email-ext plugin is even worse: the first time I add an Editable Email Notification as a post-build action it does save the recipient in its recipientList element but the second time I edit the project the recipients are lost... There was a bug for something similar in JIRA ( https://issues.jenkins-ci.org/browse/JENKINS-15442) but it's marked as cannot reproduce and closed. Is there any way I can use an environment variable as the notification email recipient list in Jenkins? This is currently working in our old Hudson but I'm trying to migrate to Jenkins. Best regards, Antti -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins
Re: Email notification recipients are not saved
Thanks, that works for email-ext. But there's another problem with that: when I enter job configuration and save the project again the recipientList element in the email-ext block in config.xml is emptied. However, I might have found a workaround: when I set BOTH Build Settings and a Post-build action Email notification with the same variable the config.xml recipients element value stays even when I edit and save the project again. Now the first one tries to send email to $VARIABLE but the second one gets the expansion right. The element in config.xml is the same for both: recipients. Is it possible that there's a bug in Jenkins where one configuration element value overwrites the other? On Monday, May 20, 2013 5:17:11 PM UTC+3, slide wrote: For email-ext, you would use ${ENV, var=YOUR_VAR} Sent from my Windows Phone -- From: Antti Ollilainen Sent: 5/20/2013 6:53 To: jenkins...@googlegroups.com javascript: Subject: Email notification recipients are not saved Hi list, I'm having a problem with Jenkins not saving the notification email recipients for a job. My setup: Jenkins 1.515 on Windows Server 2008, running standalone, started as a service. The job type is a Maven 2/3 project. I am using environment variables defined in Configure System -- Global Properties as my email notification recipients. The browser I use is the latest Chrome but the problem was same with IE10. There are two possibilities for specifying the repicipients in the job configuration: a checkbox in Build Settings and adding a Post-build action Email notification. The Build Settings creates a reporters block in the job config.xml: reporters hudson.maven.reporters.MavenMailer recipients$PROJECT1_MEMBERS/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals perModuleEmailtrue/perModuleEmail /hudson.maven.reporters.MavenMailer /reporters The recipients value IS saved correctly when using the Build Settings checkbox but environment variables are not expanded. Console log shows: Sending e-mails to: $PROJECT1_MEMBERS Finished: FAILURE When an email is configured by adding a Post-build action a publishers block is created in the config.xml: publishers hudson.tasks.Mailer plugin=mailer@1.4 recipients/recipients dontNotifyEveryUnstableBuildfalse/dontNotifyEveryUnstableBuild sendToIndividualsfalse/sendToIndividuals /hudson.tasks.Mailer /publishers As you can see the recipients element is empty. Of course when running a job no emails are sent... The email-ext plugin is even worse: the first time I add an Editable Email Notification as a post-build action it does save the recipient in its recipientList element but the second time I edit the project the recipients are lost... There was a bug for something similar in JIRA ( https://issues.jenkins-ci.org/browse/JENKINS-15442) but it's marked as cannot reproduce and closed. Is there any way I can use an environment variable as the notification email recipient list in Jenkins? This is currently working in our old Hudson but I'm trying to migrate to Jenkins. Best regards, Antti -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.