build-definition

TFS API - How to query builds independent of which build definition they belong to

旧时模样 提交于 2019-11-28 06:25:43
It seems no overloads of IBuildServer.QueryBuilds(...) allows me to do that. Here's my code: TfsTeamProjectCollection tfs = context.GetValue(TeamProject); IBuildServer buildServer = (IBuildServer)tfs.GetService(typeof(IBuildServer)); buildServer.QueryBuilds( // **what should i put here?** I don't want to specify the build definition, because the build I want may be of any type. This question seems easy, but googling it gave me no answers. Robaticus This code will get all builds . . . ever TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri("http://tfs:8080")); var vcs = tfs

TFS API - How to query builds independent of which build definition they belong to

青春壹個敷衍的年華 提交于 2019-11-27 01:20:40
问题 It seems no overloads of IBuildServer.QueryBuilds(...) allows me to do that. Here's my code: TfsTeamProjectCollection tfs = context.GetValue(TeamProject); IBuildServer buildServer = (IBuildServer)tfs.GetService(typeof(IBuildServer)); buildServer.QueryBuilds( // **what should i put here?** I don't want to specify the build definition, because the build I want may be of any type. This question seems easy, but googling it gave me no answers. 回答1: This code will get all builds . . . ever