How to retry pipeline (not individual jobs) in GitLab via the UI?
Asked Answered
L

3

19

Basically I am looking for the retry button for the pipeline triggered, but all I see is a retry button for the individuals jobs of that pipeline. I don't want to have to push a commit just to retry a pipeline. Reference screenshot

Londonderry answered 6/4, 2018 at 6:1 Comment(0)
C
29

You can retry the latest push on the pipeline by going to:

  • CI/CD -> Pipelines -> Run Pipeline -> Select the branch to run.

Otherwise, as you've mentioned, you'd have to manually press the retry button for each individual job for the pipeline (for a pipeline that isn't the latest).

Cash answered 6/4, 2018 at 8:26 Comment(3)
However, this may not work when you have rules in your Pipeline for how the pipeline is triggered - for example $CI_PIPELINE_SOURCE == "push". If so, you need to add also "web". Gitlab docsElectrodynamometer
This only works if you want to reference a commit that is the latest in the branch as opposed to any pipeline.Schmitz
If you want to retry previous pipelines on old branch it's not possible, because jobs get archived and retry buttons disappear. There is a retry button on pipeline view but clicking it doesn't do anything.Aldos
P
2

GitLab 15.1 (June 2022) should help:

Retry a downstream pipeline from the pipeline graph

Previously, to retry a downstream pipeline, you had to navigate to the pipeline and select retry.

This worked, but was a challenging experience when there were multiple downstream pipelines.
You had to go into every individual pipeline you wanted to retry and find the retry option, which was cumbersome.

In this release, we’ve improved the user experience by adding an option to retry downstream pipelines directly from the pipeline graph, without the need to go into each pipeline’s details page.

https://static.mcmap.net/file/mcmap/ZG-AbGLDKwfhWmf0cC2nZ7-sWV9QWRft/images/15_1/trigger.png -- Retry a downstream pipeline from the pipeline graph

See Documentation and Issue.>

Paolo answered 25/6, 2022 at 12:27 Comment(0)
N
0

If you want to retry pipeline for a specific merge request, try this way: https://mcmap.net/q/666638/-can-we-re-trigger-the-gitlab-pipeline

  1. Go to the merge request page.
  2. In the tabs section (next to Overview), Go to the Pipelines tab.
  3. Click on the button Run pipeline.
Nim answered 21/7 at 9:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.