Don't let the deploy job run after build failures
We have deploy jobs that run after a build failure and eventually fail because they depend on the artifacts from the build job. For example, failed Job #59220 should not have run after the build job #59219 in the previous stage failed
This can be fixed by adding when: on_success for the jobs that should run only when all jobs from previous stages succeeded.
Edited by Eesaan Atluri