Running .bat file from TeamCity

How can I automate the execution of a batch file from TeamCity. Can I create a TC assembly configuration and create a TC collector and automatically run the specified batch file?

EDIT: package script.

echo off echo Do you want to deploy xxxx to DerServ(yn): set /p input= if "%input%" == "y" goto :1 if NOT "%input%" == "y" goto :2 :1 SET MSBUILD="C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" %MSBUILD% xxxxx.defaultTeamCity.msbuild /target:projBuild goto end :2 ECHO Exiting... goto end :end pause 

Error message:

[12:25:12]: 'projBuild' is not recognized as an internal or external command, [12:25:12]: operational program or batch file. [12:25:13]: completion of the assembly

+7
source share
1 answer

Yes, you can do this using the Runner command line .

Build step

+12
source

All Articles