Hello,
I want to include a script with an IF condition, depending on the outcome of the task that comes before it.
I have a JUnit Parser task which will either fail or succeed. I would like to catch the result and have different outcomes, like so:
IF 'PREVIOUS_TASK' = success:
DO A
IF 'PREVIOUS_TASK' = fail:
DO B
Now I am not sure how to catch the result of the previous task and have it evaluate against the if statement.
EDIT: Ideally, is there a way to check a task fail/succeed, without querying the API?
simple 02-Aug-2023 09:55:00 Finished task 'Parse Test Results' with result: Failed
Thanks!