Contents of file to be shown in email body with new line or proper line

260 views
Skip to first unread message

Dattatreyac Shekar

unread,
Aug 26, 2016, 7:58:11 AM8/26/16
to Jenkins Users
*Scenario :*
Invoking Jenkins Job remotely using curl with a file parameter.
*Goal:*
Display the contents of file in email body.
Using the Editable Email Notification plugin.
*Expected Behavior.*
Contents of file to be shown in email body with new line or proper line
feeds.
*Actual Behavior*
Contents of file is shown without line feeds or new lines.
*Expectation:*
Please let me know,is there any settings or any alternates for the same to
achieve.

Slide

unread,
Aug 26, 2016, 10:36:08 AM8/26/16
to Jenkins Users

Are you using plain text or html emails? If html, wrap a <pre></pre> around it


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/02f13060-c975-401c-ac3f-7b3b0b00aad1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dattatreyac Shekar

unread,
Aug 26, 2016, 12:11:57 PM8/26/16
to jenkins...@googlegroups.com
Plain text.
It is a just a Text file with few lines. The new lines are not getting honoured.

On Fri, Aug 26, 2016 at 8:05 PM, Slide <slide...@gmail.com> wrote:

Are you using plain text or html emails? If html, wrap a <pre></pre> around it


On Fri, Aug 26, 2016, 04:58 Dattatreyac Shekar <datta...@gmail.com> wrote:
*Scenario :*
Invoking Jenkins Job remotely using curl with a file parameter.
*Goal:*
Display the contents of file in email body.
Using the Editable Email Notification plugin.
*Expected Behavior.*
Contents of file to be shown in email body with new line or proper line
feeds.
*Actual Behavior*
Contents of file is shown without line feeds or new lines.
*Expectation:*
Please let me know,is there any settings or any alternates for the same to
achieve.

--
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+unsubscribe@googlegroups.com.

--
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/gi56yItn3zE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVettUaioQVw%3Dr1GUF%3D1RAxG_DR%3DgKMpxt1pT6dvJrnSuw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
C Dattatreya
9880433955
Reply all
Reply to author
Forward
0 new messages