I used FinalBuilder before and am now evaluating version 6 of it for a different company. With the current build process I want to include a list of checked out files in the log file output. So I included a "VSS Project Checkouts" action with the following settings: - Recursive - Answer Yes to Input prompts - Log All Checkouts - Log to Variable Furthermore, I log the output into a variable so that I can add it to the log file.
The first problem is that the action fails. This would not be so bad because I can just ignore the failure. But the output seems to be a bit messed up [see log below]. It is true that a project has been permanently destroyed but this should not be a problem. This is what I tried so far, with no success: - Playing with the flags Log All Checkouts, Answer Yes to Input prompts, Ignore Failure, Log to Variable with no different results (exept for an N if "Answer Yes..." is not ticked - I did the execute the same search with VSS gui and got no errors and only the "normal" checked out files. Do you know of any way that allows me to get rid of the strange messed up destroy-messages?
Thanks
Ben
This is what FB logged from VSS:
Executing external process: C:\Program Files\Microsoft Visual Studio\VSS\win32\ss.exe Parameters: status "$/Dot Net 2.0/*.*" -I-Y -YBuildbot,******** -R "-O&C:\DOCUME~1\USERNAME\LOCALS~1\Temp\fb32.tmp" Output from C:\Program Files\Microsoft Visual Studio\VSS\win32\ss.exe File [$/Dot Net 2.0/Products/{FILE}] Is Checked Out by User : Benjamins File [$/Dot Net 2.0/Products/MCS/{FILE}] Is Checked Out by User : Benjamins File [$/Dot Net 2.0/Products/MCS/{FILE}] Is Checked Out by User : Benjamins File [$/Dot Net 2.0/Products/POS PDA/{FILE}] Is Checked Out by User : Justinm File [$/Dot Net 2.0/Products/POS8/{FILE}] Is Checked Out by User : Phillipc File [$/Dot Net 2.0/Products/POS8/BusinessLayer/ $Buildbot Test has been destroyed, and can] Is Checked Out by User : not be rebuilt. File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Continue anyway?(Y/N)Y] Is Checked Out by User : File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Project $Buildbot Test has been destroyed, and can] Is Checked Out by User : not be rebuilt. File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Continue anyway?(Y/N)Y] Is Checked Out by User : File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Project $Buildbot Test has been destroyed, and can] Is Checked Out by User : not be rebuilt. File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Continue anyway?(Y/N)Y] Is Checked Out by User : File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Project $Buildbot Test has been destroyed, and can] Is Checked Out by User : not be rebuilt. File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Continue anyway?(Y/N)Y] Is Checked Out by User : File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Project $Buildbot Test has been destroyed, and can] Is Checked Out by User : not be rebuilt. File [$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal/Continue anyway?(Y/N)Y] Is Checked Out by User : File [$/Dot Net 2.0/Products/POS8/Tools/POSLicenseGenerator/POSLicenseGenerator/My Project/licenses.licx] Is Checked Out by User : Veroniquev
It seems, though, that FinalBuilder does re-layout the output by vss, which would probably look much better in most cases, but for my case (with these destroyed projects) it messes up the output somehow.
This is what I did: I ran the ss.exe in the command line using the same input parameters as Final Builder logged in the output, and got a different output:
$/Dot Net 2.0/Products/MCS/Database Scripts/4-MCSGlobal: MCSGlobal_8.1.1.0_Upgrade.sql Benjamins Exc 5/09/08 3:10p C:\DEV\DOT NET 2.0\PRODUCTS\MCS\DATABASE SCRIPTS\4-MCSGlobal
$/Dot Net 2.0/Products/POS8/BusinessLayer/Transaction/LineTotals: LineTaxComponent.vb Phillipc Exc 4/09/08 10:04a C:\Dev\Dot Net 2.0\Products\POS8\BusinessLayer\Transaction\LineTotals
$/Dot Net 2.0/Products/POS8/BusinessLayer/UnitTest/LineTotal: LTTest.vb Phillipc Exc 3/09/08 11:53a C:\Dev\Dot Net 2.0\Products\POS8\BusinessLayer\UnitTest\LineTotal Project $Buildbot Test has been destroyed, and cannot be rebuilt. Continue anyway?(Y/N)Y Project $Buildbot Test has been destroyed, and cannot be rebuilt. Continue anyway?(Y/N)Y Project $Buildbot Test has been destroyed, and cannot be rebuilt. Continue anyway?(Y/N)Y Project $Buildbot Test has been destroyed, and cannot be rebuilt. Continue anyway?(Y/N)Y Project $Buildbot Test has been destroyed, and cannot be rebuilt. Continue anyway?(Y/N)Y
$/Dot Net 2.0/Products/POS8/Services/Integration Manager/BusinessLayer/IntegrationV2: GLAccount.vb Hungbui Exc 5/09/08 10:58a C:\Dev\Dot Net 2.0\Products\POS8\Services\Integration Manager\BusinessLayer\IntegrationV2
$/Dot Net 2.0/Products/POS8/Tools/POSLicenseGenerator/POSLicenseGenerator/My Project: licenses.licx Veroniquev Exc 7/07/08 9:29a C:\Dev\Dot Net 2.0\Products\POS8\Tools\POSLicenseGenerator\POSLicenseGenerator\My Project
This looks different and more cohesive than the output by finalbuilder (at least concerning the destroy-lines). I might use the Run DOS Command action using your params, but need to set two environment variables first (ssuser and ssdir). Perhaps that might work...
Anyway, why does it fail the VSS Project Checkout action?
The re-ordering of the output is caused by us redirecting stdout and stderr separately, and the prompts get sent to stderr. We may be able to resolve that, I will look into that on monday. As for why it’s failing, we will need to see your project.
The action does fail if any files are checked out, that is what it is intended to do. As for the re-ordered output, I wasn’t able to reproduce the problem here. I did some googling on the “Project $Buildbot Test has been destroyed, and cannot be rebuilt.” lines and that does seem to indicate some sort of issue with your vss database. I did try to reproduce that by deleting projects and files but I never saw that prompt, and without that it’s difficult to diagnose.
Now that you say this, it seems logical to fail if any files are still checked out… I thought the action was to just “list all the checkouts”.
As for the other problem… I googled a bit myself and found some vss issues, too. I haven’t had time to look into them yet, though. I had just entered a “Test” project and destroyed it shortly after that (without adding any files). Strange enough that the GUI does not come up with that error. I might try using different project roots to see if it comes up with similar errors.