O.k, so I have found the issue and its a strange one. Its not actually a 
problem with Jenkins as far as I can see which of course makes sense. I had 
a look at the microsoft bat file that is being executed and the link that 
is causing an issue. There is a snippet of that bat file below this and I 
have put in BOLD and underlined the changes i made. If anyone is able to 
understand why that line I REM'd out is a problem I would love to know, but 
with the change I have made its now working. I can guarantee the presence 
of the WindowsSdkDir so I am not worried about moving it outside the if, 
and ignoring the PATH change which seems to be the problem.

thanks

@SET VSINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 9.0
@SET VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
@SET FrameworkDir=c:\Windows\Microsoft.NET\Framework64
@SET FrameworkVersion=v2.0.50727
@SET Framework35Version=v3.5
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR

@echo Setting environment for using Microsoft Visual Studio 2008 Beta2 x64 
tools.

@call :GetWindowsSdkDir

@if not "%WindowsSdkDir%" == "" (
    *rem set 
"PATH=%WindowsSdkDir%bin\x64;%WindowsSdkDir%bin\win64\x64;%WindowsSdkDir%bin;%PATH%"*
    set "INCLUDE=%WindowsSdkDir%include;%INCLUDE%"
    set "LIB=%WindowsSdkDir%lib\x64;%LIB%"
)

@echo GL ADDED: Setting path

@set PATH=
*%WindowsSdkDir%bin\x64;%WindowsSdkDir%bin\win64\x64;%WindowsSdkDir%bin;*%VCINSTALLDIR%\BIN\amd64;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%Framework35Version%\Microsoft
 
.NET Framework 3.5 (Pre-Release 
Version);%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\VCPackages;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\Tools\bin;%PATH%

-- 
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/d/optout.

Reply via email to