Search This Blog

Tuesday, April 17, 2007

How to Get Build Result Details using TFS API - Part 3

The previous post in this series was about the build steps section of the build report. In this post we will see how to retrieve the associated changesets section details.

Using the BuildStore object we have created in this post we can get a list of ChangeSetData objects that contain the needed information (an example on how to get the buildUri parameter value available in this post also):

ChangeSetData[] changesets = buildStore.GetChangeSetsForBuild(buildUri);


foreach (ChangeSetData changeset in buildReport.Changesets)

{

MessageBox.Show(changeset.ChangeSetId.ToString());

MessageBox.Show(changeset.ChangeSetUri);

MessageBox.Show(changeset.CheckedInBy);

MessageBox.Show(changeset.Comment);

}


3 comments:

Anonymous said...

Hi,

Have you considered moving your blog to blogs.microsoft.co.il?
I really think it is a better blogging platform.

Guy Burstein
http://blogs.microsoft.co.il/blogs/bursteg

Anonymous said...

Hi,

Have been using your TFSBuildManager (really good by the way!) We have implemented some build tasks using BuildStore, BuildData etc. We have now updated to TFSBuild 2008 and unsuprisingly they have stopped working. I thought it would be as simple as recompiling against the version 9.0 Microsoft.TeamFoundation.* assemblies, but that yielded lost of warnings about deprecated classes - two of which were BuildStore and BuildData. Do you known what these have been superceded by and Do you plan to update TFSBuildManager to work with 2008 build server. I know it does still work, but I mean using the API that MS obviously want people using!

digital certificate said...

Informative post ! I am using TFSBBuildManager . It is working fine. I am bit confused in changedsetdata. Can you please help me in knowing the exact meaning of it through any example. I will be very thankful to you.