Search This Blog

Showing posts with label build step. Show all posts
Showing posts with label build step. Show all posts

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);

}


Tuesday, April 10, 2007

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

The previous post in this series was about the summary section of the build report. In this post we will see how to retrieve the build steps section details.
Using the BuildStore object we have created in the previous post we can get a list of BuildStepData objects that contain the needed information (an example on how to get the buildUri parameter value available in the previous post also):

BuildStepData[] buildSteps = buildStore.GetBuildSteps(buildUri);

Now we can go through all the objects in the collection and retrieve details for each one of them.

foreach (BuildStepData in buildSteps)
{
MessageBox.Show(buildStep.BuildStepMessage);
MessageBox.Show(buildStep.BuildStepName);
MessageBox.Show(buildStep.FinishTime.ToString());
MessageBox.Show(buildStep.Status.ToString());
}