I don't think it's a bug, if the variable isn't available, there is nothing email-ext can do to get it really.
Sent from my Windows Phone ------------------------------ From: Foxgang Sent: 2/5/2013 16:22 To: jenkinsci-users@googlegroups.com Subject: Re: $HOSTNAME in email-ext plugins That's a reasonable workaround; we might do that if we have to. We name our nodes differently than the machine name though (e.g. "computer1-unix-rhel6" for the machine named "computer1" running RedHat 6). So there's no way to get the machine name? Should this be reported as a bug? On Monday, February 4, 2013 2:01:41 PM UTC-6, slide wrote: > > I'd recommend using the NODE_NAME variable instead. It works cross > platform. > > > On Mon, Feb 4, 2013 at 1:00 PM, Foxgang <tev...@gmail.com <javascript:>>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 jenkinsci-use...@googlegroups.com <javascript:>. >> 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 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.