10
Vote

Doesn't seem to support the new Team Foundation Build system

description

Microsoft introduced a new build system in TFS 2015 they call Team Foundation Build. We've created a few of these builds and they don't seem to be showing up in the list.

comments

StaffanW wrote Sep 17, 2015 at 10:22 PM

Confirmed, this is something I've missed. Will try to fix it asap.

craftworkgames wrote Sep 17, 2015 at 11:31 PM

Looking forward to it.

wrote Nov 9, 2015 at 4:51 PM

wrote Nov 11, 2015 at 5:47 PM

robSE13 wrote Nov 16, 2015 at 2:21 PM

I think this is related as it didn't work for me for Visual Studio Online.

I decided to create a VERY simple build monitor specifically for Visual Studio Online:
https://github.com/elrob/build-mon

craftworkgames wrote Nov 16, 2015 at 10:46 PM

@StaffanW Any updates on the progress of this?

StaffanW wrote Nov 18, 2015 at 6:01 AM

Sorry for the lack of updates - I haven't had the time to do this yet... I couldn't find anything in the API that returned these builds and I haven't seen anyone else doing it either. Any help regarding this is welcome!

cope wrote Nov 23, 2015 at 9:39 AM

There's some documentation here:

https://www.visualstudio.com/en-us/integrate/api/build/definitions

However, I tried this on our OnPremises TFS, and it only returned xaml build definitions, regardles of the parameters in the query.

For instance, the following still returned only 'xaml' builds....

~/_apis/build/definitions?api-version=1.0&type=build

cope wrote Nov 23, 2015 at 9:42 AM

And the reason is obvious, the url should be

~/_apis/build/definitions?api-version=2.0&type=build

Remember to use the 2.0 version of the api, as version 1.0 only supports xaml-builds...

StaffanW wrote Nov 23, 2015 at 11:41 PM

Yes, the REST API returns both types, but not the .NET library for the object model... Since REST is not supported for older versions of TFS I'd rather not use it...

The key line in the current source code for Team Build Screen is this:
IBuildDefinition[] projectBuilds = this.buildServer.QueryBuildDefinitions(project.Name);
This only returns XAML builddefinitions and I can't find a way to include both types of builddefinitions.

StaffanW wrote Nov 29, 2015 at 8:15 PM

Ok, so I've tried a few things with the new API and it actually seems somewhat backwards compatible, at least for the methods I've tried.

The bad thing is that I will have to rewrite quite a bit of code since many objects are stored internally in TBS using the old data types. I'll keep you posted on progress...

wrote Dec 2, 2015 at 7:21 PM

Associated with changeset 76039: * Reading non-XAML build definitions from TFS, but still not the actual builds. Yet.

wrote Dec 3, 2015 at 4:09 PM

wrote Dec 3, 2015 at 6:06 PM

Associated with changeset 76040: * Fixed installer.
  • Updated Nuget references.

craftworkgames wrote Dec 3, 2015 at 10:52 PM

@StaffanW Great to know you're working on this.

matthewball wrote Jan 20, 2016 at 8:30 PM

@StaffanW Any luck getting closer to an updated release?

wrote Jan 20, 2016 at 8:30 PM

wrote Jan 22, 2016 at 10:11 PM

GeoffColes wrote Jan 22, 2016 at 10:13 PM

This would be a really useful feature. I would be really interested to see when it's available. Thanks for this great product.

StaffanW wrote Jan 30, 2016 at 5:54 PM

This is by far the topmost item on my list, but I haven't had enough time to dedicate to TBS lately, with Christmas and all. It's also quite painful to use the new API since the documentation is lacking, and some methods that I want to use don't work as I expect them to... If I can't get it all to work I may have to cut down on some data presented, but hopefully only temporary.

craftworkgames wrote Feb 4, 2016 at 5:00 AM

@StaffanW Thanks for the update. I've also looked for the API documentation and I agree it's very lacking. I think cutting down on the data presented would be a better than nothing. Incremental steps.

wrote Feb 9, 2016 at 12:14 PM

ivoloshin wrote Feb 9, 2016 at 12:15 PM

I agree with @craftworkgames - we would be happy to put the builds up with a simple Red/Green status for the time being.

wrote Feb 12, 2016 at 1:59 PM

wrote Feb 27, 2016 at 11:16 PM

Associated with changeset 76078: * Implemented support for new build system for TFS 2015. Not working on VSTS (VSO)!

StaffanW wrote Feb 27, 2016 at 11:23 PM

So I finally got around to implementing this for TFS 2015 using the new REST API. Could anyone please try the latest source and see if it fixes your problem?

I've tried to be backwards compatible with legacy versions of TFS, but by doing that I didn't get it to work with VSTS yet... For some reason VSTS doesn't initialize the TfsTeamProjectCollection.ServerDataProvider.ServerVersion property.

ivoloshin wrote Feb 29, 2016 at 12:22 PM

I tested out the Desktop view and it seems to be working so far. I'll keep you updated if there are any issues.

Thanks for the update!

wrote Mar 24, 2016 at 1:38 AM

wrote Jan 6 at 8:43 PM