i working on solution want parameters builddefinition per code. when hit it, error message "no build definition found team project toystory name spass-mit-flaggen."
the used code written below:
var tfscreds = new tfsclientcredentials(new windowscredential(), false); var tpc = new tfsteamprojectcollection(new uri(options.collectionuri), tfscreds); var buildserver = (ibuildserver)tpc.getservice(typeof(ibuildserver)); var builddetail = buildserver.getbuild(new uri(options.builduri)); var builddefinition = buildserver.getbuilddefinition( builddetail.teamproject, options.builddefinition);
the options object contains program parameters. in case following strings:
options.collectionuri == "http://tfs-test:8080/tfs/test/" options.builduri == "vstfs:///build/build/85" options.builddefiniton == "spass-mit-flaggen"
has idea what's going wrong here?
thanks in advance
you're using old soap api accessing builds. new build system introduced in tfs 2015 doesn't use soap messaging, has totally separate rest api. you'll need use rest api, available in easily-consumable object model form on nuget.
Comments
Post a Comment