We would like Jenkins to include the machine name of the slave it used when 
it sends an email. On windows slaves, this is solved by using ${ENV, 
var="COMPUTERNAME"}. This uses the Token Macro expansion plugin to grab the 
%COMPUTERNAME% environment variable. 

However, this doesn't seem to work with $HOSTNAME (the Unix equivalent). 
Strangely, it does work for other Unix variables, like $HOME. Additionally, 
when I put 'echo $HOSTNAME' in an 'execute shell' build step, it also 
works. Is there some reason that this particular variable doesn't expand? 
Is there an alternate method I could use? 

-- 
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.


Reply via email to