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
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
2 answers
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").
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