#1
|
|||
|
|||
ResetBuildStatus -- endless loop.
We have noticed that sometimes when our scripts fail or even sometimes when they complete successfully, the script doesn't reset to the beginning. So, when the scheduled task runs each night, the script doesn't go from the top. I am trying to add a script task to the end to say, Builder.ResetBuildStatus, but this causes the script to fire off again from the top as oppose to just reset the script in preparation for the next run. Is there anyway for me to get around this?
Thanks, Rick. |
#2
|
|||
|
|||
For each new instance of VBP (the GUI app, console app, or creating via the object model), it will normally start at the first project step when performing a build. Some things that could affect this:
1) If 'Tools | Application Options | General | Persist build status when saving project files' is checked, the completion status of the steps will be saved with the project. If that build is opened and started again, it will start from the beginning, but will skip the steps marked completed. 2) If a build is initiated via script code, the startType and startIndex parameters of the Start method will determine which step it starts at. Assuming #1 is unchecked and you are launching either the GUI or Console app from a Scheduled Task, I don't see any way that the build would not start from the first project step. If you could provide a sample project + scheduled task info to reproduce this behavior we can certainly investigate. Also include the info from Help | About | Install Info in VBP, and the files listed in Tools | File Locations that exist on your box. |
|
|