Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
Thanks.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 28 '11, 2:31 p.m.

Question was seen: 7,389 times

Last updated: Apr 28 '11, 2:31 p.m.

Confirmation Cancel Confirm