[JIRA] (JENKINS-58972) Jenkins not sending valid report email attachment for failure build

7 views
Skip to first unread message

infokarthi14@gmail.com (JIRA)

unread,
Aug 16, 2019, 4:16:02 PM8/16/19
to jenkinsc...@googlegroups.com
Karthi Palanisamy created an issue
 
Jenkins / Task JENKINS-58972
Jenkins not sending valid report email attachment for failure build
Issue Type: Task Task
Assignee: Alex Earl
Components: email-ext-plugin
Created: 2019-08-16 20:15
Priority: Major Major
Reporter: Karthi Palanisamy

I have a Jenkins job which will email the Test.html report for every build. The issue here is whenever the build is success, I'm getting the email with attachment. But when the Build is failed, (even though the Test.html file is generated), I'm not getting the email itself.

I have tried to add try {} and finally{}. When I add finally in the Jenkins script, its sending some 'older' report and not the 'current generated' report.

 

node ('docker')

{ env.ForEmailPlugin = env.WORKSPACE emailext attachmentsPattern: 'Test1.html', body:'''Hi , Please find the Sanity Test report!!!''', subject:currentBuild.currentResult + " : " + env.JOB_NAME, to: 'x...@gmail.com' }
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

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

unread,
Aug 16, 2019, 4:24:02 PM8/16/19
to jenkinsc...@googlegroups.com

infokarthi14@gmail.com (JIRA)

unread,
Aug 16, 2019, 4:30:01 PM8/16/19
to jenkinsc...@googlegroups.com

Yes, Remaining codes are maintained by the admin team. I don't have access to it.

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

unread,
Aug 16, 2019, 5:01:02 PM8/16/19
to jenkinsc...@googlegroups.com

Nothing in your code shows anything really useful, so without additional details there really isn't anything I can do. I have emails working fine with success and failure cases, so my guess is it is something related to whatever is around your code.

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

unread,
Feb 21, 2020, 2:03:02 PM2/21/20
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Incomplete
 
Change By: Alex Earl
Status: Open Closed
Resolution: Incomplete
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages