Currently, I'm doing this.  

sh '<some-command>  > /tmp/aa'
def VAR1 = readFile('/tmp/aa')

This mostly works.  But oftentimes the variable has a newline and so it 
messes up its usage. 

Is there a better way to store the output in a variable without having to 
deal with the newline? 

thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f12a1391-bf74-41f9-9c6e-9eab354b7ea6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to