[JIRA] (JENKINS-13805) email-ext plugin cannot see env variables set as part of build config
kalpesh soni created JENKINS-13805: -- Summary: email-ext plugin cannot see env variables set as part of build config Key: JENKINS-13805 URL: https://issues.jenkins-ci.org/browse/JENKINS-13805 Project: Jenkins Issue Type: Bug Components: email-ext Environment: 2.18 Reporter: kalpesh soni I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === { Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-13805) email-ext plugin cannot see env variables set as part of build config
[ https://issues.jenkins-ci.org/browse/JENKINS-13805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] kalpesh soni updated JENKINS-13805: --- Description: I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote} was: I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === { Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS } email-ext plugin cannot see env variables set as part of build config - Key: JENKINS-13805 URL: https://issues.jenkins-ci.org/browse/JENKINS-13805 Project: Jenkins Issue Type: Bug
[JIRA] (JENKINS-13805) email-ext plugin cannot see env variables set as part of build config
[ https://issues.jenkins-ci.org/browse/JENKINS-13805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=162848#comment-162848 ] Slide-O-Mix commented on JENKINS-13805: --- DEFAULT_RECIPIENTS is not an environment variable, it is a token that is replaced. If you want to use an environment variable use the ENV token (see the Content Token Reference info in the help section of the plugin). email-ext plugin cannot see env variables set as part of build config - Key: JENKINS-13805 URL: https://issues.jenkins-ci.org/browse/JENKINS-13805 Project: Jenkins Issue Type: Bug Components: email-ext Environment: 2.18 Reporter: kalpesh soni Labels: email-ext, environment-variables, plugin I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-13805) email-ext plugin cannot see env variables set as part of build config
[ https://issues.jenkins-ci.org/browse/JENKINS-13805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Slide-O-Mix closed JENKINS-13805. - Assignee: Slide-O-Mix Resolution: Not A Defect This is not a bug, DEFAULT_RECIPIENTS is not an environment variable. Use the ENV content token in the recipients field to use an environment variable. email-ext plugin cannot see env variables set as part of build config - Key: JENKINS-13805 URL: https://issues.jenkins-ci.org/browse/JENKINS-13805 Project: Jenkins Issue Type: Bug Components: email-ext Environment: 2.18 Reporter: kalpesh soni Assignee: Slide-O-Mix Labels: email-ext, environment-variables, plugin I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-13805) email-ext plugin cannot see env variables set as part of build config
[ https://issues.jenkins-ci.org/browse/JENKINS-13805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=162870#comment-162870 ] kalpesh soni commented on JENKINS-13805: what syntax do i use? its not documented anywhere email-ext plugin cannot see env variables set as part of build config - Key: JENKINS-13805 URL: https://issues.jenkins-ci.org/browse/JENKINS-13805 Project: Jenkins Issue Type: Bug Components: email-ext Environment: 2.18 Reporter: kalpesh soni Assignee: Slide-O-Mix Labels: email-ext, environment-variables, plugin I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-13805) email-ext plugin cannot see env variables set as part of build config
[ https://issues.jenkins-ci.org/browse/JENKINS-13805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=162873#comment-162873 ] Slide-O-Mix commented on JENKINS-13805: --- Yes, it is documented in the content macro reference when configuring the plugin. email-ext plugin cannot see env variables set as part of build config - Key: JENKINS-13805 URL: https://issues.jenkins-ci.org/browse/JENKINS-13805 Project: Jenkins Issue Type: Bug Components: email-ext Environment: 2.18 Reporter: kalpesh soni Assignee: Slide-O-Mix Labels: email-ext, environment-variables, plugin I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41 Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira