Pipeline processing broken when retrying build
It looks like one of the merge requests that we introduced recently that change how pipeline is being processed caused a severe regression.
When build in the failed pipeline with multiple stages is retried, it does not trigger builds in the next stage, moreover entire pipeline is marked as successful.
This needs a little more investigation.
Example: https://gitlab.com/gitlab-org/gitlab-qa/pipelines/3980866
Related merge requests: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5295, https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5782