Retrying a pipeline retries only the failed jobs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

If I have a 3-stage pipeline, like

stage:
  - build
  - test
  - deploy

with a job allowed to fail. So, this job fails, but the pipeline passes.

Now, when I hit the retry pipeline button, it runs only the failed job.

Steps to reproduce

  1. Create a simple .gitlab-ci.yml with two stages
  2. Make the first pass
  3. Make the second fail but allow it to succeed
  4. Pipeline succeeds
  5. Retry pipeline

What is the current bug behavior?

Only the failed jobs are retried

What is the expected correct behavior?

The whole pipeline should be retried


After a brief discussion in the chat, this is the "correct" behaviour and we also don't show the retry button if a pipeline has all its jobs green. I believe the Retry button in a pipeline is kinda misleading and should say something like Retry failed.

screenshot-gitlab.com_2017-03-17_10-25-41

Edited by 🤖 GitLab Bot 🤖