I wanted to know if there is any way we can know the result of a previous step execution in a build pipeline in azure dev ops.
To explain my query in detail: Lets say in azure Devops i have a build pipeline with as around 10 steps which performs few tasks like prepare for build, Build the solution, syncing and few other things.
Now i wanted to know the status of certain step execution whether it is failed or succeeded in other words:
- STEP 1: Successful
- STEP 2: Successful
- STEP 3: Failed
- STEP 4: I want to know the status of STEP 3 execution whether it is failed or successful based upon that I want to execute STEP 4
- STEP 5: Should get executed similar to STEP 4 i.e.based on step execution result of STEP 3
- STEP 6: Should be executed
- STEP 7: Should be executed
So on so forth till STEP 10..
My issue is how to achieve this? How to make the execution of few steps to not get executed based upon previous step execution result and then rest others Should get executed.
Please note I have tried to put like Execute only if all previous tasks have been successful but still it does not work. It still executes step 4 and 5.
Also note that the STEP 7 has some custom condition associated to it which works fine . This note was only given to provide more context how my build pipeline tasks are defined or created.
Please help me resolving this issue or achieving this kind of behavior.