问题
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