how to get changeset for gatecheck
-
Friday, July 27, 2012 12:22 PM
Hi,
I am trying to get changeset and shelvset for gatecheckin.
Please help me how i can get this two things.
All Replies
-
Friday, July 27, 2012 1:29 PM
Hi Ajay,
If the Gated build is unsuccessful then you will find the option for Unshelving (against which it’s being checked-in) on the build report itself. In the following picture, you see the option that are presented for Rejected Build via Gated Check-in.
If the build is successful then you will see the changeset number against which Gated Check-in was performed at the bottom of the Build Log file. See the image below for an example…
If you want to unshelve somebody else’s changes that was rejected by Gated Check-ins then you can simply go to… View >>> Other Windows >>> Pending Changes. Now in Pending Changes window, you will see button for unshelve that you can use to show you necessary dialog box. There, you will have to provide user name information for the person who tried committing failed build.
I hope this will be useful and it solves your issue.
Best Regards,
Dharmesh Shah.
Wanted to automatically generate release notes from TFS… Why now look at http://tfschangelog.codeplex.com
-
Monday, July 30, 2012 5:52 AM
Hi Dharmesh shah,
Thank's for your replay
After Build completion of Gated checking i want to send notification email where i need add this changset and shelveset name.
At run time
foreach (IChangesetSummary changeset in InformationNodeConverters.GetAssociatedChangesets(buildDetail))
{
int chid = changeset.ChangesetId;
string strcomment = changeset.Comment;
string shelvesetname = buildDetail.ShelvesetName;
}i want to pull the change set but i am unable to get the changeset in this.
Please help me how to get changeset at runtime.
Thank you
Ajay Kumar R
-
Friday, August 03, 2012 2:56 AMModerator
Hi Ajay,
Thanks for your post!
I am currently looking into this issue and will give you an update as soon as possible.
Thank you for your understanding and support.
Best Regards,
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
-
Sunday, August 05, 2012 11:25 PM
This is how we do it in PowerShell:
$gatedCheckin = [Microsoft.TeamFoundation.Build.Client.InformationNodeConverters]::GetActivityTrackingNodes(<IBuildDetail>) | where { $_.ActivityType -eq "Microsoft.TeamFoundation.Build.Workflow.Activities.CheckInGatedChanges" } $changesetId = $gatedCheckin.Node.Children.GetNodesByType("CheckInOutcome")[0].Fields["ChangesetId"]- Marked As Answer by Cathy KongMicrosoft Contingent Staff, Moderator Thursday, August 09, 2012 2:24 AM

