Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 288791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:50:56+00:00 2026-05-12T05:50:56+00:00

I am running hudson on Vista and calling MSBuild for C++ solutions (VS 2008).

  • 0

I am running hudson on Vista and calling MSBuild for C++ solutions (VS 2008).

I have not been able to find a way to export the existing user or system environment variables.

I can manually set env variables via hudson, but I prefer not to do that – I want to use the existing ones that are already set. Is there a way to do this?

Essentially I want to be able to pick from a list of env vars and tell hudson to map those/export those to the processes/workspaces it spawns.

Hudson is running as a service.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:50:56+00:00Added an answer on May 12, 2026 at 5:50 am

    I just did a quick test by downloading the latest version of Hudson (1.316), and creating a job that runs simply “set” (if you’re not familiar with this, running set by itself in the console lists all the environment variables within the current scope).

    Here’s the console output, these are all the environment variables – user and system, plus variables defined by Hudson itself to make the Hudson meta information available to the jobs:

    Started by user anonymous
    [workspace] $ cmd /c call D:\Temp\hudson5023210513071219278.bat
    
    C:\Documents and Settings\jack\.hudson\jobs\Environment Variable Test\workspace>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\jack\Application Data
    BUILD_ID=2009-07-19_22-59-42
    BUILD_NUMBER=1
    BUILD_TAG=hudson-Environment Variable Test-1
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=BEEBLEBROX
    ComSpec=C:\WINNT\system32\cmd.exe
    EXECUTOR_NUMBER=0
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\jack
    HUDSON_COOKIE=a0bc798a-20ab-40bc-aad6-f4a331567999
    HUDSON_HOME=C:\Documents and Settings\jack\.hudson
    JAVA_HOME=c:\program files\java\jdk1.6.0
    JOB_NAME=Environment Variable Test
    LOGONSERVER=\\BEEBLEBROX
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;...blah...blah...blah...
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 15 Stepping 0, AuthenticAMD
    PROCESSOR_LEVEL=15
    PROCESSOR_REVISION=0f00
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    QTJAVA=C:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=D:\Temp
    TMP=D:\Temp
    USERDOMAIN=BEEBLEBROX
    USERNAME=jack
    USERPROFILE=C:\Documents and Settings\jack
    windir=C:\WINNT
    WORKSPACE=C:\Documents and Settings\jack\.hudson\jobs\Environment Variable Test\workspace
    
    C:\Documents and Settings\jack\.hudson\jobs\Environment Variable Test\workspace>exit 0 
    Finished: SUCCESS
    

    I suspect your variables are simply not defined within the environment of the owner of the Hudson process (or something like that, we’ll need more information about your Hudson set up to really know).


    Edit: Another note, you can have a look at /systemInfo to see all the system properties and environment variables that are available to Hudson. Keep in mind that when Hudson spawns a new process to do work, all environment variables should be available to the child process, unless Hudson explicitly remove them first (this is more a nature of the operating system than Java, I believe). So unless you see any documentation detailing the removal of certain environment variables (and if so, I’m sure the developers would have a reason for it), I’d first check to see if the variables are available to Hudson in the first place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Running SQL Server 2008 (not R2). I have a few reports that have URLs
I have a job running under Hudson that has not progressed from Started by
Good morning I'm running Hudson java -jar hudson.war and I have configured MSBuild as
I'm automating my MSBuild-based C# solution build using Hudson running on a Windows machine.
We have a continuous integration server running Hudson CI . I'm thinking about putting
I have a Hudson server, and a git repository, both running on our server
We have some Jenkins (was formerly a Hudson system) jobs running. Now, we saw
I have a number of projects running on a Hudson slave. I'd like one
I have a long-running unit test job in hudson. If some tests fail I
I have am running Hudson on Ubuntu in a VM, and had a couple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.