상세 컨텐츠

본문 제목

Execute Batch File After Tfs Build Templates

카테고리 없음

by taitraddisdesc1970 2020. 2. 21. 18:19

본문

  1. Batch File Execute Command
BuildBatch

My task is: after TFS build 1) On a server X stop file Example.exe 2) Copy files from Drop Location into server X 3) Run a brand-new version of Example.exe on a server X I'm updating DefaultTemplate.xaml in TFS 2012, Visual Studio 2012. I'm entering InvokeProcess activity that runs Do.bat script. My Build Agent copies files to server X and then runs file X. Do.bat Do.bat is something like taskkill /F /IM Example.exe start%p0Example.exe So, the problem is the Example.exe is running on a Build Agent, not on server X.

String

Batch File Execute Command

How can I make build agent run an executable file on another server? The additional question - is it worth using bat files as scripts in TFS Build?