Team Foundation History Doesn't work in FB 7

 I'm trying to use the Team Foundation History Action in Final Builder 7 to determine several things, such as changeset number, last person to check in and when they checked in.  I'm putting the following parameters in for the action

Item Spec: *

Version Spec: T

User:

Recursive is checked

Detailed Format is selected

Number of entries to view: 1

Save history to variable: History

From the log file, I can see that FinalBuilder is emitting the appropriate command line parameters, but it is always saying that the action Failed!  The command line is below:

history /version:T /stopafter:1 /recursive /format:detailed /noprompt

When I type this in at the Command Prompt, I get the results I expect.

Thanks,

Nick

Hi Nick

Can you check what the dos %ERRORLEVEL% is after running the command from the command prompt? The History action is set to only interpret 0 as a success return code.

If it’s returning non zero then perhaps we need to change the action… although according to this page :

http://msdn.microsoft.com/en-us/library/ms194959(v=VS.80).aspx

zero is the only definitive success code.


Hello Vincent,

I ran the command line history command and checked %ERRORLEVEL% and it was 0. Just in case it helps or makes a difference, FinalBuilder is running on a Windows 2008 R2 Server 64-Bit.

Thanks,

Nick

Any updates on this one?

Hi Nick,

I just had a look at the action and it should be succeeding so long as the return code is 0, do you have any custom script or output monitors on the action? If you could send in your project to support[at]finalbuilder.com we might be able to figure out what’s going on.

Regards,
Paul.

Paul,

I have no custom script at all. I don’t actually have it in my project because it isn’t working. All of the parameters that I’ve passed in are in the original post to this thread.

Thanks,
Nick

Any updates on this one?

Which version of TFS are you using?

2010

Has anyone been able to get this working with TFS 2010?

I'm including a sample project where the TFS History command isn't working.  Any chance someone could look at this and tell me what is wrong?

TFS_History_Test.fbp7 (19.275 KB)

Ok, I think I’ve finally figured this one out. I need to specify the path in the Item Spec.

Hi Nick,
Thanks for sharing your work around. Is this behaviour (needing to specify the Item Spec) different from FinalBuilder 6? From what I can see we haven’t changed the History action for FB7, but I may have missed something.

Cheers,

Ben

Looking into this a little more, the History action isn’t using the default TFS working directory (as set in the FinalBuilder options). I’ve just fixed this and will upload a test build this afternoon.

Now, if no path is set in the Item Spec AND there is a default working directory, the default working directory is used.

Ben

The build with this fix is available from https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_727.exe

Ben