Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo and script configured environment variables

Mike Beeson November 7, 2013

Hi,

I am testing migrating our build from TeamCity to Bamboo. Our build steps include a script task at the start of the job to configure environment variables by calling 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat', however the changes to environment variables when this is called do not appear to persist to subsequent tasks (ie. MSBuild ones), so our build fails.

Am I setting this up wrong? My MSBuild task builds a target that relies on the environment variables set from vcvarsall.bat.

Thanks,

Mike.

1 answer

1 accepted

2 votes
Answer accepted
Mike Beeson November 12, 2013

For info, I solved this myself by creating an 'MSBuild.bat' file which sets up environment variables every time and calls MSBuild.exe. This then gets used by Bamboo to launch MSBuild rather than the executable.

Not a particularly nice solution imho.

Robin Gauß September 17, 2015

I'm in the exact same spot two years later.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events