I think I may have misunderstood the purpose of this function, but here's my problem.
When I look in the build summary, I see that a build ran successfully, and it tells me:
[person] triggered [build number] ([project]) for changeset 123456
I have the following code, which runs in a console app to tell me what changesets were included in a build.
IBuildDefinition[] result = buildServer.QueryBuildDefinitions(teamProj.Name);
foreach (IBuildDefinition def in result)
{
IBuildDetail[] dets = def.QueryBuilds();
foreach (IBuildDetail det in dets)
{
det.RefreshAllDetails();
// Get changesets for the buildList<IChangesetSummary>
changes = InformationNodeConverters.GetAssociatedChangesets(buildDetail);
foreach (IChangesetSummary changeset in changes)
{
}
}
}
The problem is that this returns nothing. The Information propery has 6 nodes, none of which relate to a changeset or a workitem. Why does VS2010 build summary tell me that I have an associated changeset, but the code below tells me different?