I'm trying to run a batch file that I store in subversion. Relative to the checkout directory it's at
I have a command line runner step set as follows:
Working Directory: trunk\Database\Build\Shared
Run: Executable with parameters
Command Executable: CopySQLBackups.bat
The build fails with:
[15:40:43]: "CopySQLBackups.bat" is not present in directory C:\TeamCity\buildAgent\work\c0ebf743024d92d6
[15:40:43]: Starting: C:\Windows\system32\cmd.exe /c CopySQLBackups.bat \\tco-sql\backups\tco-sql \\tco-dev-sql-02\sqlbakfiles
[15:40:43]: in directory: C:\TeamCity\buildAgent\work\c0ebf743024d92d6\trunk\Database\Build\Shared
I also tried blanking out the working directory and putting the full path to the script in the "Command executable" but got a similar error. It seems like it's ignoring the value of the working directory parameter.
Can anyone suggest a way to make this work?