Job should be marked as passed if at least one container passes

I have a job that is pretty flaky and I’m ok with marking it as passed if at least one of the containers passes. Currently I have two containers that run the job and if one of them fails the entire job is marked as failed. Is there a way to change this rule? I’d like the job to be marked as passed if at least one of the containers passes.

Thanks,

There is no way to change this explicitly. However, note that “failure” is determined strictly by exit code. You could write a script of some sort to achieve this condition (i.e. if JOBA OR JOBB passes THEN pass). Then have the script return a non-zero exit code if both jobs fail.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.