I'd recommend using the NODE_NAME variable instead. It works cross platform.


On Mon, Feb 4, 2013 at 1:00 PM, Foxgang <[email protected]> wrote:

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



-- 
Website: http://earl-of-code.com

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