开发者

TeamCity synchronized Build Step or wait for a step to finish

开发者 https://www.devze.com 2023-03-07 23:55 出处:网络
i am learning TeamCity, and trying to figure out how to have a Build Step (command line) triggered or run after all prior ste开发者_如何学Cps are completed? currently i have FxCop and Nunit with dotCo

i am learning TeamCity, and trying to figure out how to have a Build Step (command line) triggered or run after all prior ste开发者_如何学Cps are completed? currently i have FxCop and Nunit with dotCover setup and would like to copy all temp files used in the build to another location at the end.

the problem i am having is that the last commandline step that does the xcopy runs before NUnit/dotCover is completed and temp files are produced.

any comments?

thanks,


All your steps will be performed in turn, so somehow your previous steps seem to signal that they are ready before the output is written.

We use NAnt to make a "sleep" call for 10-15 seconds in some of our configurations, after a deploy for instance. Try that and see if it helps.

EDIT: Our main target, with a sleep command in between:

<target name="deploy">
<call target="backupFiles" />
<call target="takeAppOffline" />
<call target="deleteOldFilesFromWebFolder" />
<call target="copyNewFilesToWebFolder" />
<sleep seconds="20" />
<call target="takeAppOnline" />
</target>
0

精彩评论

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

关注公众号