Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 282108

Summary: HOSTNAME is not defined in Hudson environment
Product: Community Reporter: David Williams <david_williams>
Component: CI-JenkinsAssignee: CI Admin Inbox <ci.admin-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: d_a_carver
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Williams CLA 2009-07-01 02:37:00 EDT
And it used to be. And, still is in a shell: 
echo $HOSTNAME --> build

My guess is I can find a place to define it myself, but seems like it should be inheriting it from the environment. 

Sound familiar to anyone?
Comment 1 David Carver CLA 2010-04-27 08:35:49 EDT
(In reply to comment #0)
> And it used to be. And, still is in a shell: 
> echo $HOSTNAME --> build
> 
> My guess is I can find a place to define it myself, but seems like it should be
> inheriting it from the environment. 
> 
> Sound familiar to anyone?

I've added a global environment variable called HOSTNAME that contains the value of build.  This should be available to every job.   Not we may want to review this especially when slaves come online for use.

Please verify that this is working.