Sometimes maybe you have a problem with the runner configuration or the test docker image and then all jobs will fail. Its really hard to retry all jobs manually and in GitLab there is no build in future to do this over the web interface. There is a easy way in GitLab retry all failed jobs.

First you must open the gitlab rails console:

If you using the docker image from gitlab:

Or if you using the package installation:

In the gitlab-rails console now you can write ruby code and talk to the system:

If you like to retry all jobs from all projects you can run this:

If you like to retry only all jobs from a specific project:

Find the project_id with the url:

After projects its group/project_name. :)

Now copy the id and use this for the db search string!