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.
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 :
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.
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.
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.
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.
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.