TeamCity 同步构建步骤或等待步骤完成
我正在学习 TeamCity,并试图弄清楚如何在所有先前步骤完成后触发或运行构建步骤(命令行)?目前我有带有 dotCover 设置的 FxCop 和 Nunit,并且希望将构建中使用的所有临时文件复制到最后的另一个位置。
我遇到的问题是,执行 xcopy 的最后一个命令行步骤在 NUnit/dotCover 完成并生成临时文件之前运行。
有什么意见吗?
谢谢,
i am learning TeamCity, and trying to figure out how to have a Build Step (command line) triggered or run after all prior steps 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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的所有步骤都将依次执行,因此您之前的步骤似乎表明它们在写入输出之前已准备就绪。
例如,在部署后,我们在某些配置中使用 NAnt 进行 10-15 秒的“睡眠”调用。尝试一下,看看是否有帮助。
编辑:
我们的主要目标,中间有一个睡眠命令:
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: