开发者

TFS2010 Team build - waiting for an "InvokeProcess" step to complete

开发者 https://www.devze.com 2023-04-12 08:56 出处:网络
I am performing a database restore as part of our TFS 2010 Team build. Since a number of databases are being restored, I am using a batch file which is invoked via the InvokeProcess activity.

I am performing a database restore as part of our TFS 2010 Team build. Since a number of databases are being restored, I am using a batch file which is invoked via the InvokeProcess activity. I have a number of issues that I am uncertain about: 1. Does the TFS wait for all the command in the batch file to complete or move to the next activity as soon as kicking the InvokeProcess? 2. Is there a way to have the build process wait for successful completion of the batch command?

I am using it as follows: The FileName property of InvokeProcess has "c:\windows\system32\cmd.exe" The 开发者_StackOverflow中文版Arguments property has the full path of my batch file.


Yes the InvokeProcess will wait for the external command to finish.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号