Display text page inside mail body with Email-ext plugin in Jenkins

1,603 views
Skip to first unread message

Alex Brodov

unread,
Nov 10, 2014, 8:41:08 AM11/10/14
to jenkins...@googlegroups.com

I'm attaching a text file to the content of the email that is sent from jenkins, the thing is that the content of this file doesn't appear as it appear in any notepad, i've tried sending the email as plain text and as html but it still displaying the content in a diferent way. For example if this is one of the lines in the file:

+------------------------------------------------------------------------------+
                      MSP-B Automated Testing Report
+------------------------------------------------------------------------------+
| scale-ive-0001-vertical-vpm2-160_prog_1_zone-check-acquire-time.py........OK |

This is how it looks like in the email:

+------------------------------------------------------------------------------+
                      MSP-B Automated Testing Report
+------------------------------------------------------------------------------+
| scale-ive-0001-vertical-vpm2-160_prog_1_zone-check-acquire-time.py....
| ....OK | 

Daniel Beck

unread,
Nov 10, 2014, 8:44:52 AM11/10/14
to jenkins...@googlegroups.com

On 10.11.2014, at 14:41, Alex Brodov <alex...@gmail.com> wrote:

> notepad

If you mean the horribly broken text editor shipping with Windows, make sure there's no Unix newline (0x0a) at the line break.

There also shouldn't be any other ASCII control characters for that matter. Use a hex editor to determine the exact file contents.

Make sure it's an issue with the email _contents_ and not your email _viewer_ doing additional clever formatting.

Alex Brodov

unread,
Nov 10, 2014, 11:12:40 AM11/10/14
to jenkins...@googlegroups.com
I've fixed it by changing the format to html and adding this : 
<pre>
${FILE,path="test2.l"}
</pre>


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/Ae45UVV4W7g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages