Hi Support Team,
I use a FinalBuilder 7 project in my ContinuaCI build process. This project contains a ‘List Iterator’ action without any child; I do all required stuff with the iterator variable in OnAfterEachIteration.
This lead to a wrong indention in ContinuaCI log (in any ContinuaCI version I ever had installed):
4:51:37 PM Action List :Main
4:51:37 PM Try
4:51:37 PM if BuildVersion not provided get if from Include Project ManageBuildVersion.fbp7
4:51:37 PM Execute Condition (JavaScript)
4:51:37 PM Condition : BuildVersion == ""
4:51:37 PM Action Skipped because Condition evaluated to False
4:51:37 PM Prompt for Variables for test under IDE
4:51:37 PM Execute Condition (JavaScript)
4:51:37 PM Condition : !IsConsoleBuild && !IsIncludedProject
4:51:37 PM Action Skipped because Condition evaluated to False
4:51:37 PM Sort SolvedRequests
4:51:37 PM Loaded text from C:\ContinuaCI\Agent\Ws\9403\MyProject_FinalBuilder_\OT_Log.txt, 18 lines found
4:51:37 PM Text sorted in ascending natural order
4:51:40 PM SolvedRequests -> Attachments
4:51:40 PM Setting items…
4:51:40 PM Found 18 Items
4:51:40 PM Variable Iterator set to SW-08007 - serveral messages during Setup “Change” procedure
4:51:40 PM SolvedRequests -> Attachments
4:51:40 PM Variable Iterator set to SW-12397 - Profile Based Export fails
4:51:40 PM SolvedRequests -> Attachments
4:51:40 PM Variable Iterator set to SW-12610 - invert storage of export profiles
4:51:40 PM SolvedRequests -> Attachments
4:51:40 PM Variable Iterator set to SW-12682 - AutoBackup (Cold Standbye Scenario)
4:51:40 PM SolvedRequests -> Attachments
4:51:40 PM Variable Iterator set to SW-12957 - file based Backup / Restore
4:51:41 PM SolvedRequests -> Attachments
4:51:41 PM Variable Iterator set to SW-13080 - Support of cards
4:51:41 PM SolvedRequests -> Attachments
4:51:41 PM Variable Iterator set to SW-13186 - Scheduled Software Update
4:51:42 PM SolvedRequests -> Attachments
4:51:42 PM Variable Iterator set to SW-13189 - SNMP Configuration Management
4:51:42 PM SolvedRequests -> Attachments
4:51:42 PM Variable Iterator set to SW-13190 - Configuration Data
4:51:42 PM SolvedRequests -> Attachments
4:51:42 PM Variable Iterator set to SW-13219 - support of "xyz"
4:51:42 PM SolvedRequests -> Attachments
4:51:42 PM Variable Iterator set to SW-13535 - support of Values and bugfix of xyz
4:51:42 PM SolvedRequests -> Attachments
4:51:42 PM Variable Iterator set to SW-13649 - Scheduled Action “Restore Most Recent Backup” fails
4:51:42 PM SolvedRequests -> Attachments
4:51:42 PM Variable Iterator set to SW-13835 - Changes for FILE.DAT
4:51:43 PM SolvedRequests -> Attachments
4:51:43 PM Variable Iterator set to SW-14163 - incorrect Excel Export
4:51:43 PM SolvedRequests -> Attachments
4:51:43 PM Variable Iterator set to SW-14195 - Support of xyz
4:51:43 PM SolvedRequests -> Attachments
4:51:43 PM Variable Iterator set to SW-14200 - support of abc
4:51:43 PM SolvedRequests -> Attachments
4:51:43 PM Variable Iterator set to SW-14210 - add new views
4:51:44 PM SolvedRequests -> Attachments
4:51:44 PM Variable Iterator set to SW-14211 - Configuration Mgmt. not working
4:51:44 PM SolvedRequests -> Attachments
4:51:44 PM No more items found - iteration ended
4:51:44 PM Find INI File
4:51:44 PM TO-Recipients -> eMailTo
4:51:44 PM Setting items…
4:51:44 PM Found 8 Items
4:51:44 PM Variable Iterator set to abc
4:51:44 PM TO-Recipients -> eMailTo
4:51:44 PM Variable Iterator set to def
4:51:44 PM TO-Recipients -> eMailTo
4:51:44 PM Variable Iterator set to ghi
4:51:49 PM Send eMail - External
4:51:49 PM Finally
4:51:49 PM Export log as HTML to file: C:\ContinuaCI\Agent\Ws\9403\MyProject_FinalBuilder_\eMail_Log.htm
4:51:49 PM Execute Condition (JavaScript)
4:51:49 PM Condition : LogFile != ''
4:51:49 PM Condition evaluated to True
4:51:50 PM Exporting log to file: C:\ContinuaCI\Agent\Ws\9403\MyProject_FinalBuilder_\eMail_Log.htm
4:51:50 PM Success
4:51:50 PM End
Please note that in the FinalBuilder project the try / finally / end actions are on the same indention level. The ContinuaLog is indented every other appearance of the ‘List Iterator’ log line (see also attached image).
In case I move my script from OnAfterEachIteration to a ‘Run Script’ child action of the List Iterator Action (in the FinalBuilder 7 project) the indention (in ContinuaCI) is OK.
Best regards
Michael
Hi Michael
Unfortunately FinalBuilder 7’s logging is not great with Continua CI, due to a difference in some concepts between the two products. FinalBuilder 8’s logging with Continua CI is better, but we still have some work to do. We will be reworking the logging in Continua CI in the near future to improve logging in general.
Hi Vincent,
Thanks for your answer. I think I should not put the upgrade to FB 8 on the long finger any longer
Best regards
Michael
Yes, please do something about that. Reading FB logs in Continua’s log is impossible.
What worked for me though is exporting the FB log to Continua’s workspace as HTML (as the last step in the FB script), transferring it back to the server from the agent in the Continua stage workspace rules and registering it as a report. Then you get the nice HTML FB log embedded into the build’s Reports tab.