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

How to Conditionally Execute a Step, Based on Prior RCs?

The very last step of my project is a cleanup step which MUST be executed REGARDLESS of what happens before it. If a prior intermediate step fails, however, none of the following intermediate steps should be executed. I've put "continue on fail" on each of the intermediate steps so that the project will keep running in the event of a failure. Now I need to put a condition on each of the intermediate steps so that they will not run if there's a prior failure.

The conditions I've tried are RESULT = 0 and %RESULT% = 0 , but these always evaluate to false and cause the steps to be skipped.

What is the proper condition, or, what's a better way to set this up?

Thanks,
John Bobinyec

0 votes



2 answers

Permanent link
The very last step of my project is a cleanup step which MUST be executed REGARDLESS of what happens before it. If a prior intermediate step fails, however, none of the following intermediate steps should be executed.


Make that last step its own project, and set it to be both the project-level pass and fail chain project.

Leave the rest of the steps alone (i.e., do not make them "continue on fail").

0 votes


Permanent link

Make that last step its own project, and set it to be both the project-level pass and fail chain project.

Leave the rest of the steps alone (i.e., do not make them "continue on fail").


That sounds plausible IF I can pass information to this project. Among other things it needs to know which server to execute on, since they're in a pool, and it must also let the cleanup project know what needs to be cleaned up (file names).

Can I pass dynamic information to a chained project?

Thanks,
John Bobinyec

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: Jan 27 '12, 10:22 a.m.

Question was seen: 4,166 times

Last updated: Jan 27 '12, 10:22 a.m.

Confirmation Cancel Confirm