Conditional statement
Build Forge provides conditional statement. It also allows multiple commands to be executed in a single step.
In a case where I am using regular step (step type = regular) and executing multiple commands in a single step (multiple commands exist in the command block), can I conditionally run the commands based on certain criteria. The criteria could be as simple as checking for an entry in an environment value.
Thanks
In a case where I am using regular step (step type = regular) and executing multiple commands in a single step (multiple commands exist in the command block), can I conditionally run the commands based on certain criteria. The criteria could be as simple as checking for an entry in an environment value.
Thanks
2 answers
Build Forge provides conditional statement. It also allows multiple commands to be executed in a single step.
In a case where I am using regular step (step type = regular) and executing multiple commands in a single step (multiple commands exist in the command block), can I conditionally run the commands based on certain criteria. The criteria could be as simple as checking for an entry in an environment value.
Thanks
the short answer is "yes".
you can use conditionals as described here to evaluate your conditional statement
http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc/topics/steps_exec_condition_functions.html
then you have a "then" and an "else" step command box in which you can execute multiple system commands just like a regular step.
You can read more on this here: http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc/topics/steps_exec_conditional.html