tfs - How to check TFS2013 Collection for Builds -
looking way find how projects in collection have builds instead of having check project project find out.
something simple name of project have build on it.
no, can't there no simple way achieve this. build definition created on team explorer - build- new build definition. it's project level, not team project collection level. source link: create or edit build definition
update
if want similar result of builds in team explore, may have use tfs api achieve this, using ibuildserver.querybuilds.
you have konw project name first can query builds based on date filter. don’t need associated work items builds, nor associated changesets or bunch of other stuff. increased performance ,sample code below:
var buildspec = buildserver.createbuilddetailspec(teamprojectname, builddefinition); buildspec.informationtypes = null; buildspec.minfinishtime = datetime.now.addhours(-lastxhours); var builddetails = buildserver.querybuilds(buildspec).builds; more details please refer blog: fastest way list of builds using ibuildserver.querybuilds , 1 tfs api - how query builds independent of build definition belong to
Comments
Post a Comment