TFS, Team Build and a Build Confirmation
February 23rd 2009We recently wanted to add a manual verification to our TFS builds. We didnt want someone accidentally clicking the build to production when they meant to build to development. They are right next to one another and look very similar.
I didnt want to spend a lot of time on it, so I came up with this. Itll work for now and ensure we manually interact with the queue build dialog.
<Target Name="BeforeEndToEndIteration" Condition="'$(C***)' != 'suck'" >
<Error Text=
"You did not state your feelings for the C***. Please state this by submitting
the parameter /p:C***='suck' in the queue build dialog."/>
</Target>
The parameter name realy isn't "C***", but I didn't want to offend any followers of the team with the longest championship drought of any professional sports team. Actually, I bet it is safe to extend that to individual performers too.