Hello
Im trying to create a policy for check in’s in the Server Code.
I want that this policy checks the resultant code, and doesnt allow the check in if the resultant code does not compile..
How could I do this
Thx
Hello
Im trying to create a policy for check in’s in the Server Code.
I want that this policy checks the resultant code, and doesnt allow the check in if the resultant code does not compile..
How could I do this
Thx
Check in Buid Policy
DuckPuppy
And if the code in the check in is going to break the build. The policy doent allow that check in.
Thanks
Frederic Bellier
Kyle Fender
You can find a sample for checkin policy on the Visual Studio 2005 SDK.
You have to develop a custom class and implement IPolicyDefinition and IPolicyEvaluation interfaces (they are in namespace Microsoft.TeamFoundation.VersionControl.Client) they implement all the methods you need for the policy, in which you will implement the logic you need, then you will have to distribute the policy assemblies to ALL clients of your team foundation server, but this is resume, I would recommend you download the SDK where you will find documentation and a sample.
gamemaker9
Do you just want to make sure that the developer does a clean build before they check in
JB
andy0203
You really can't do this easily. There are a couple of approaches. What we do at Microsoft is have a separate "checkin server" called Gauntlet. No one checks in directly. Instead you create a shelveset and queue it for gauntlet. Gauntlet unshelves it, builds it and runs some tests (this could be done with Team Build). If everything passes, it checks it in on your behalf. If not, it sends you email.
We aren't currently shipping gauntlet as a product right now.
Other approaches are to catch this issue post-checkin. You could check it in (possibly to a staging branch). You could then use a continuous integration build system to build and merge good changes over to the "real" branch and send mail when the staging branch is broken.
Here's a blog with some pointers on how to implement continuous integration with TFS Build: http://blogs.msdn.com/khushboo/archive/2006/02/23/537704.aspx
Brian