Difference between failed() vs succeededorFailed() in Devops YAML
Every organizations embrace Devops culture for CI & CD. Nowadays, everybody prefers YAML which is IaC (Infrastructure as Code) instead of classic UI editor.
YAML consists main components as stages, jobs, steps, tasks.... etc.,
Based on the requirement, Devops engineers need to apply conditions on pipline between tasks or jobs or stages.
what is condition? when I want to run a task or job based on some condition like only when my preferred another job failed or succeeded.
Here I job1 and job2. I need to run job2 only if job1 fails. Let's see the difference between failed() and succeededorFailed() through the below image.
Comments
Post a Comment