I’m trying to set up a GitLab Pipeline which has two stages A and B.
B should execute
on_failure but whenever I set
allow_failure: true for job A.
it doesn’t execute job B. If I set the
allow_failure: false, then my job B gets executed.
Is it the default mechanism of GitLab?
Can anyone please help me with this?
Can you add more details about your usecase please ?
Why are you setting
allow_failure: true ?
Usecase: manual jobs that won’t prevent merging if not run (default
allow_failure: true) but that should trigger a cleanup job in case they are triggered and failed
+1. I have same issue. Any solution?
EDIT: In our case we can use rules and allow_failure: false to specific case.