Book Image

GitLab Cookbook

By : Jeroen van Baarsen
Book Image

GitLab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
About the Author
About the Reviewers

Linking your first project to GitLab CI

In order to use your GitLab projects in GitLab CI, you need to tell the system that you want to link them together. In this recipe, we will add your project to GitLab CI.

How to do it…

In the following steps, we will add the project to GitLab CI:

  1. Go to your GitLab CI web interface.

  2. Log in as an admin user.

  3. On the root page, you should see a list of your projects. If not, click on the Sync now button. The list should look something like the following screenshot:

  4. To add the project, click on the Add button. In this example, I'll add the super-git project.

  5. When you go to your dashboard, you should be able to see one project that has a yellow background. This means that the project has been added but no build has run yet, so a status cannot be determined.

  6. As every project needs at least one runner, let's make sure that the runner is set either to Shared or to this project specifically.

  7. In the main menu, click on Runners.

  8. Find the runner that you want to use for...