PDA

View Full Version : Step Property


dheller
01-04-2010, 08:02 AM
I have a Step that checks the Status on a server via a macro, if the status returned = clean, then continue to next step, however the step always builds even if the returned status is not equal to clean, can you provide any guidence on how to get this step to evaluate properly. I have attached a file that shows the setting s on the General Tab

kinook
01-04-2010, 10:08 AM
Two steps: first, the HTTP step without build rule, followed by a step (could be the specific action to execute or a Group step with additional child steps) with rule to build only if %HTTP_OUTPUT% is equal to clean.
http://www.kinook.com/VisBuildPro/Manual/buildrules.htm

dheller
01-04-2010, 11:40 AM
Ok, I made step 1, the HTTP Step to always build and then added a new step, step 2 as a Group Step with rule to build only if %HTTP_OUTPUT% is equal to clean., however it still builds all the preceeding steps even when the macro evaluates to an ouptput other than clean.

kinook
01-04-2010, 11:42 AM
http://www.kinook.com/Forum/showthread.php?threadid=3044

dheller
01-06-2010, 11:32 AM
I have now run into another problem when building from a command line. Every night, this project runs as an automated build, however since making the changes to get the first step to check the build server status before executing the preceeding steps, it no longer builds, always stops on the step that evaluates the status. I'm using the follwing command to build"C:\Program Files\VisBuildPro6\VisBuildPro.exe" with the command arguement: /b "C:\Program Files\VisBuildPro6\trios2_Release.bld"

kinook
01-06-2010, 11:39 AM
You may need to remove a breakpoint (or use the /s option to skip breakpoints).
http://www.kinook.com/VisBuildPro/Manual/builddetails.htm
http://www.kinook.com/VisBuildPro/Manual/command_linegui.htm

dheller
01-06-2010, 11:59 AM
I don't have any breakpoints set in my project. It builds correctly from the console UI when I select Build Group

kinook
01-06-2010, 12:07 PM
Enable file logging and ZIP and post or send the log file.
http://www.kinook.com/VisBuildPro/Manual/buildlogging.htm

dheller
01-08-2010, 09:07 AM
I found the problem, apparently the automated build stoped, but the process was still running in Task Manager so I changed some setting so that if it starts a new process to terminate the process if another instance is running