I'm using teamcity to build a legacy application that uses a Visual Build script. I'm trying to run it using the command line line runner.
it's working fine as long as i dont specify macros, however it's strange that the command works fine when executed in the cmd window of the agent..
this is the executable i specified(inlcuding the quotes):
this is the string i'm using as command line argument:
"LOGFILE=C:\sources\Build\log\install.log" "BUILD_NUMBER=%env.SVN_REVISION%" "_COPY_TO_AUTOTEST=0" /nologo /nooutput /b "C:\sources\Build\buildscript.bld"
The Fulll log contains the following:
[13:48:54]: Start process: "C:\Program Files\VisBuildPro\VisBuildCmd.exe" LOGFILE=C:\sources\Build\log\install.log BUILD_NUMBER=90 _COPY_TO_AUTOTEST=0 /nologo /nooutput /b C:\sources\Build\buildscript.bld
[13:48:54]: in: C:\iPFG.Install
[13:48:55]: Process exited with code 1
i noticed the missing quotes in the logged statement, but i dont think this is the reason. I also tried escaping with \ and double quotes (""), without success.
I am using Version 4.5.1 of teamcity
Im happy for any suggestion