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
- Create a simple
.gitlab-ci.ymlwith two stages - Make the first pass
- Make the second fail but allow it to succeed
- Pipeline succeeds
- 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.
Edited by 🤖 GitLab Bot 🤖
