Tfs2010

Hi there,

I've upgraded to latest FinalBuilder and TFS2010 build templates on my local machine and the build machine. I'm using FinalBuilderBuild.xaml and FinalBuilder 7.0.0.787

However when running a build I now get the current error:

TF215097: An error occurred while initializing a build for build definition \Tellus.Core\Tellus.Core: Cannot set unknown member 'VSoftTechnologies.FinalBuilder.TFS.Workflow.FinalBuilder.CustomArguments'.

What's up with that?! 

Oh, sorry, it started with BuildAgent, so I removed the reference from the build workflow (editing the xamlx with a text editor) and now it starts bugging about the custom arguments. So I guess there's something wrong with version, I just cannot figure out where. Is it me, my server or the setup.exe from FinalBuilder?

 I am getting the same error after upgrading FinalBuilder to the latest version. I have upgraded on the TFS server and on my laptop. I have also changed the build process template. Have you found out what is causing this error?

/Magnus

@Magnus : I posted this 30 minutes earlier, no I haven’t figured it out yet! But since you have the same problem, I’m guessing it’s a bug (or missing feature or so) in FinalBuilder release.

Ah, I see now that the post was quite new

Hi Guys

The custom arguments stuff is new and required changes to the template workflows… try diff’ing your xaml with the templates provided with the new build. You may also need to reboot as TFS tends to need this when updating assemblies that it loads. Also if your build agents are on a different machine don’t forget to install the new build of FinalBuilder on the build agent machines.

 I have now tried to restart our TFS server and I am getting a different error now:

Object reference not set to an instance of an object.

I have updated the FinalBuilderBuild.xaml that we are using and I have also tried to disable everything in my FinalBuilder script, but I am still getting the error.

I have noticed that the only two options I now have for FinalBuilder in the build process is Custom Arguments and Project File. Is this correct?

/Magnus

Hi Magnus,
Yes, Custom Arguments and Project File are the only options that you should see. Build Flavor and Platform are taken from the “items to build” data (see this thread: https://www.finalbuilder.com/forum.aspx?aft=10221).

“Object reference not set…” errors usually occur because a solution to build hasn’t been specified. You should get a “build definition incomplete” dialog when attempting to save the build definition if that’s the case.

It may be a bug related to changing where flavor and platform are specified - I’ll try and replicate it. In the mean time, can you please set the Logging Verbosity to ‘Diagnostic’ in your build definition, run the build and email the complete build log to support[at]finalbuilder.com?

Cheers,

Ben

The null reference error turned out to be a bug. It’s fixed in the latest test build, which you can download here: https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_800.exe

Please install it, restart the TFS build service, and let me know if the problem continues.

Cheers,

Ben

Everything works fine here now. All  "Get Team Foundation Build Paramters" are coming in and work fine!

And name of the service is "Visual Studio Team Foundation Build Service Host". After restarting it, it's working.

Thanks for the quick response and fixes, as usual! 

 I can also confirm that it is working fine after upgrading to the latest version.

Thank you for the quick solution

/Magnus

Thanks for letting us know that it worked guys.

FYI, you can restart the TFS build service through the TFS Admin Console, under Build Configuration (saves you hunting for the service in Services).

Ben