TeamCity - Re-running a specific build step

孤者浪人 提交于 2019-12-10 14:14:24

问题


For arguments sake if you've configured 3 builds steps and you want to re-run the 3rd step in isolation (not run the prior 2 steps), how would you achieve this?


回答1:


No, not possible....unless you temporarily disable the earlier steps in admin, and run the build again.

http://confluence.jetbrains.com/display/TCD7/Configuring+Build+Steps




回答2:


You could split your 3 build steps into 2 build configurations with a snapshot dependency between the two. The first build configuration would contain the first two build steps. The dependency should be set to 'Run build on the same agent' and 'Do not run new build if there is a suitable one'. This will chain the two configurations together, but will optionally allow you to just run the second configuration if nothing has changed in source.

Depending on your setup this may or may not be a suitable solution. This could work ok if your third build step is running some tests which just need to be rerun without recompiling the code.



来源:https://stackoverflow.com/questions/15618225/teamcity-re-running-a-specific-build-step

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!