I'd like to set up a TFS 2008 build in a way that it runs on every check-in and also nightly. The thing is that I'd like to keep the output from the build only for the nightly builds (with the check-in builds only acting as verification).
What is the best/suggested way of skippi开发者_StackOverflowng the CoreDropBuild step conditionally?
You can use the retention policy to set it to Keep None.
Thanks to the answer on Setting properties in triggered build I managed to achieve the solution by using the $(Reason) variable like Condition=" '$(Reason)' == 'Schedule'
and setting the SkipDropBuild property to true.
You can find the details at http://msdn.microsoft.com/en-us/library/cc716772(VS.90).aspx and http://msdn.microsoft.com/en-us/library/aa337598.aspx
精彩评论