how to get changeset for gatecheck programmatically in c#
-
Wednesday, August 01, 2012 10:48 AM
Hi,
When gated check in is triggered i need to send the changeset in the notification mail. how can i do that in c#.
All Replies
-
Wednesday, August 01, 2012 1:50 PMYou mean when it is started? Then the CS number is not yet known. It'll be known when the build is finished.
My blog: blog.jessehouwing.nl
-
Thursday, August 02, 2012 7:06 AMis there any other process to get the changeset while running the build through c# code
-
Friday, August 03, 2012 2:22 AMModerator
Hi Ajay,
Thanks for your post!
About this issue I am trying to involve someone familiar with it. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Best Regards,
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
-
Friday, August 03, 2012 8:39 AM
Not on a gated checkin. The information available is the latest CS number which was used to build the workspace. After creation of the workspace Team Build will unshelve the changes for the gated checkin.
After the build succesfully finishes the changes are checkin into TFS and a new Changeset number is generated. In the build workflow you can look for this point (it's way down in the workflow) and after that point you'll have access to the actual CS number that was generated by the build.
My blog: blog.jessehouwing.nl
- Marked As Answer by Cathy KongMicrosoft Contingent Staff, Moderator Monday, August 13, 2012 1:58 AM
-
Monday, August 06, 2012 9:24 PMOwner
Hi Ajay,
Jesse’s answer is correct. I just to offer another possible option. Another possibility outside of a build script would be to check if an event is fired when doing a gated check in. If an event does fire, you could write a trigger attached to that event. Take a look at this tool on CodePlex. You install it on the TFS server.
http://tfseventsubscription.codeplex.com/
This tool allows you to monitor events and send an e-mail.
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help.- Proposed As Answer by Trevor HancockMicrosoft Employee, Moderator Thursday, August 09, 2012 3:39 PM
- Marked As Answer by Cathy KongMicrosoft Contingent Staff, Moderator Monday, August 13, 2012 1:58 AM

