[JIRA] (JENKINS-54617) email-ext-plugin in Pipeline does not send email to group email id

3 views
Skip to first unread message

swapnil_patne@bmc.com (JIRA)

unread,
Nov 13, 2018, 11:55:02 PM11/13/18
to jenkinsc...@googlegroups.com
Swapnil Patne created an issue
 
Jenkins / Bug JENKINS-54617
email-ext-plugin in Pipeline does not send email to group email id
Issue Type: Bug Bug
Assignee: David van Laatum
Components: email-ext-plugin
Created: 2018-11-14 04:54
Environment: Jenkins ver. 2.107.2 (installed on centos 7)
email-ext plugin 2.62
Priority: Critical Critical
Reporter: Swapnil Patne
  1. email-ext-plugin in Pipeline script does not send email to group email id even though console says sending email. The same works for individual email id.

[Pipeline] emailextSending email to: group...@BMC.com

  1. Also "cc:" & "bcc:" doesn't work at all from pipeline script, no matter how I try it. Any example of using CC, BCC will be really helpful.
    def notifyTest() {
     emailext (
     subject: "Test Email Ignore",
     body: """Hello All,
    
    JenkinsAdmin""",
     to: "groupE...@bmc.com",
     cc:'spa...@bmc.com',
     bcc:'swapni...@bmc.com',
     from: "Jenkin...@IS-Automation.bmc.com"
     )
     }
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

david@vanlaatum.id.au (JIRA)

unread,
Nov 14, 2018, 12:26:02 AM11/14/18
to jenkinsc...@googlegroups.com
David van Laatum closed an issue as Not A Defect
 

From jenkins point of view there is no difference between a user email and a group email so if only some emails get through its your mail server

This is usually caused by mail being hosted on exchange and the email group has only allow authenticated users ticked (which is the default)

Change By: David van Laatum
Status: Open Closed
Resolution: Not A Defect

swapnil_patne@bmc.com (JIRA)

unread,
Nov 14, 2018, 12:32:02 AM11/14/18
to jenkinsc...@googlegroups.com
Swapnil Patne commented on Bug JENKINS-54617
 
Re: email-ext-plugin in Pipeline does not send email to group email id

I can send email to same email group from jenkins server through linux 'mail" command. So that's not an issue. Also any comment on usage of CC/BCC will be helpful.

david@vanlaatum.id.au (JIRA)

unread,
Nov 14, 2018, 12:35:02 AM11/14/18
to jenkinsc...@googlegroups.com

Are you using the local mail server in jenkins? If so does the email show up in the logs?

swapnil_patne@bmc.com (JIRA)

unread,
Nov 14, 2018, 12:36:01 AM11/14/18
to jenkinsc...@googlegroups.com
Swapnil Patne reopened an issue
 
Change By: Swapnil Patne
Resolution: Not A Defect
Status: Closed Reopened

swapnil_patne@bmc.com (JIRA)

unread,
Nov 14, 2018, 12:39:02 AM11/14/18
to jenkinsc...@googlegroups.com
Swapnil Patne commented on Bug JENKINS-54617
 
Re: email-ext-plugin in Pipeline does not send email to group email id

I mean, I was doing it from crontab for sending email before starting job through rest API call from shell script. That is working. However this does not give me facility of using env variables to be used in email as I am doing it outside of jenkins. Hence tried email-ext plugin in my pipeline script as the example given above in description.

david@vanlaatum.id.au (JIRA)

unread,
Nov 14, 2018, 12:44:02 AM11/14/18
to jenkinsc...@googlegroups.com

If as you say some email gets through its highly likely not jenkins but something in your setup that is the problem. I get tickets about this all the time and it always ends up being mail server or spam filter or similar dropping the emails. Check the logs on whatever server is configured as the email server in jenkins and I am almost positive you will find entries there saying jenkins sent the email, what happens to it after that is outside of jenkins control

swapnil_patne@bmc.com (JIRA)

unread,
Nov 14, 2018, 12:53:02 AM11/14/18
to jenkinsc...@googlegroups.com

Not a good question to ask, however I haven't configured any mail server myself, so which logs to check in the server? Jenkins logs or some linux logs? All I know is same pipeline script send me email if I put my email id in "to:".
Also my crontab code which work looks like below which sends email to same group email id

40 09 * * 0-5 mail -s 'Automation Run will be started soon' -r Jenkin...@IS-Automation.bmc.com -c mana...@bmc.com,mana...@bmc.com,team...@bmc.com swapni...@bmc.com,someGr...@BMC.com < /opt/starting-automation-email.txt

david@vanlaatum.id.au (JIRA)

unread,
Nov 14, 2018, 12:59:02 AM11/14/18
to jenkinsc...@googlegroups.com

In jenkins global settings at http://<jenkins-server>/configure there are settings for mail server to use to send email.

The local mail command used by cron may be configured differently than jenkins hence why it works

swapnil_patne@bmc.com (JIRA)

unread,
Nov 14, 2018, 1:09:02 AM11/14/18
to jenkinsc...@googlegroups.com

ok, that is empty for me(screenshot attached). So I need to first setup SMTP server and then provide those details in the email config section, right? However this is working for individual email id even without setting that SMTP Server field, is it expected behavior?

swapnil_patne@bmc.com (JIRA)

unread,
Nov 14, 2018, 1:09:02 AM11/14/18
to jenkinsc...@googlegroups.com

david@vanlaatum.id.au (JIRA)

unread,
Nov 14, 2018, 1:11:02 AM11/14/18
to jenkinsc...@googlegroups.com
David van Laatum commented on Bug JENKINS-54617
 
Re: email-ext-plugin in Pipeline does not send email to group email id

I think it might default to the settings for the default jenkins email plugin falling back to localhost

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 10:43:02 AM7/17/19
to jenkinsc...@googlegroups.com

Can emails be sent to the group email via normal email methods? We have a similar issue at my company that we are looking into. Sending emails via Outlook to the groups works, but sending from Jenkins does not. It would be interesting to know if you are seeing the same thing.

slide.o.mix@gmail.com (JIRA)

unread,
Oct 2, 2019, 2:44:03 PM10/2/19
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Cannot Reproduce
 

Need additional details from submitter. Please reopen if you have additional details.

Change By: Alex Earl
Status: Reopened Closed
Assignee: David van Laatum Alex Earl
Resolution: Cannot Reproduce
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages