Hi ,
Thanks for the quick respond.
I found the way:
${FILE,path="kuku.txt"}

It works like a charm .

BR
Yossi

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Daniel Beck
Sent: Sunday 16 February 2014 15:36
To: [email protected]
Subject: Re: send the content of a file via Jenkins

This has nothing to do with Jenkins.

How do you get line breaks to appear in an HTML document?

On 16.02.2014, at 12:40, Brosh, Yossi <[email protected]> wrote:

> Hi To all,
>  
> I need to send the content of a file  via Jenkins .
> When I used these pre-send Scripts lines:
> def reportPath = build.getWorkspace().child("kuku.txt")
> msg.setContent(reportPath.readToString(), "text/html");
>  
> The file appears in one line, the script seems to remove all the CR+LF .
> Any idea ?
>  
> BR
> Yossi
>  
> 
> -- 
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to