Question

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 skipping the CoreDropBuild step conditionally?

Was it helpful?

Solution 2

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

OTHER TIPS

You can use the retention policy to set it to Keep None.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top