send the content of a file via Jenkins

2014-02-16 Thread Brosh, Yossi
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: send the content of a file via Jenkins

2014-02-16 Thread Daniel Beck
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 yossi.br...@sap.com 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 jenkinsci-users+unsubscr...@googlegroups.com.
 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


RE: send the content of a file via Jenkins

2014-02-16 Thread Brosh, Yossi
Hi ,
Thanks for the quick respond.
I found the way:
${FILE,path=kuku.txt}

It works like a charm .

BR
Yossi

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Daniel Beck
Sent: Sunday 16 February 2014 15:36
To: jenkinsci-users@googlegroups.com
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 yossi.br...@sap.com 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 jenkinsci-users+unsubscr...@googlegroups.com.
 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 jenkinsci-users+unsubscr...@googlegroups.com.
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.