From b5a674a29162f6abf91e04c894d8e862d88a247a Mon Sep 17 00:00:00 2001 From: fneill Date: Fri, 30 Jun 2023 16:26:34 +0200 Subject: [PATCH 01/11] Added tutorial steps --- .../create_register_first_runner/index.md | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 doc/tutorials/create_register_first_runner/index.md diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md new file mode 100644 index 00000000000000..0c5f7e80e29fa3 --- /dev/null +++ b/doc/tutorials/create_register_first_runner/index.md @@ -0,0 +1,90 @@ +# Tutorial: Create, register, and run your first self-managed runner + +This tutorial shows you how to configure and run your first runner in GitLab. + +A runner is an agent in the GitLab Runner application that runs jobs in a GitLab CI/CD pipeline. +Jobs are defined in the `.gitlab-ci.yml` file and assigned to available runners. + +GitLab has three types of runners: + +- Shared: Available to all groups and projects in a GitLab instance. +- Group: Available to all projects and subgroups in a group. +- Project: Associated with specific projects. Typically, project runners are used by one project at a time. + +For this tutorial, you'll create a project runner to run jobs defined in a basic pipeline +configuration. + +To create a project runner: + +1. [Create a project pipeline](#do-the-first-task) +1. [Create a project runner](#do-the-second-task) +1. [Trigger the runner to run a job](#do-the-third-task) +1. [View the status of your runner](#do-the-third-task) + +## Prerequisites + +Before you can create, register, and run a runner you must: + +- [Install GitLab Runner](https://docs.gitlab.com/runner/install/). +- Have a GitLab project. +- Have the Maintainer or Owner role for the project. +- Have enabled runner creation for the project. + +## Create a project + + + +## Create a project pipeline + +First, create a `.gitlab-ci.yml`file. This is a `YAML` file where you specify instructions for GitLab CI/CD. + +In this file, you define: + +- The structure and order of jobs that the runner should execute. +- The decisions the runner should make when specific conditions are encountered. + +1. On the left sidebar, at the top, select **Search GitLab** (**{search}**) to find your project or group. +1. Select **Project overview**. +1. Select the plus icon ({plus}), then select **New file**. +1. In the **Filename** field, enter `.gitlab-ci.yml`. +1. In the large text box, paste this sample configuration: + + ```yaml + stages: + - build + - test + + job_build: + stage: build + script: + - echo "Building the project" + + job_test: + stage: test + script: + - echo "Running tests" + ``` + +## Create and register a project runner + +Next, you'll create a project runner and register it. You must register a runner to link +it to your GitLab instance so that it can pick up jobs from the project pipeline. + +To create a project runner: + +1. On the left sidebar, at the top, select **Search GitLab** (**{search}**) to find your project. +1. Select **Settings > CI/CD**. +1. Expand the **Runners** section. +1. Select **New project runner**. +1. Select your operating system. +1. In the **Tags** section, select the **Run untagged** checkbox. [Tags](../../ci/runners/configure_runners.md#use-tags-to-control-which-jobs-a-runner-can-run) specify which jobs + the runner can run and are optional. +1. Select **Submit**. +1. Follow the on-screen instructions to register the runner from the command line. When prompted: + - For `executor`, because you are running directly on the host computer, enter `shell`. + - For `GitLab instance URL`, use the URL for your GitLab instance. +1. Start your runner: + + ```shell + gitlab-runner run + ``` -- GitLab From b66594c845f79a948f7f48a680ff6d37479bc009 Mon Sep 17 00:00:00 2001 From: fneill Date: Thu, 13 Jul 2023 14:30:00 +0200 Subject: [PATCH 02/11] Added more content --- .../create_register_first_runner/index.md | 55 +++++++++++++------ 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 0c5f7e80e29fa3..10e76e558f7cda 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -12,28 +12,20 @@ GitLab has three types of runners: - Project: Associated with specific projects. Typically, project runners are used by one project at a time. For this tutorial, you'll create a project runner to run jobs defined in a basic pipeline -configuration. +configuration: -To create a project runner: - -1. [Create a project pipeline](#do-the-first-task) -1. [Create a project runner](#do-the-second-task) -1. [Trigger the runner to run a job](#do-the-third-task) -1. [View the status of your runner](#do-the-third-task) +1. [Create a project pipeline](#create-a-project-pipeline) +1. [Create and register a project runner](#create-and-register-a-project-runner) +1. [Trigger a pipeline to run your runner](#trigger-a-pipeline-to-run-your-runner) ## Prerequisites Before you can create, register, and run a runner you must: - [Install GitLab Runner](https://docs.gitlab.com/runner/install/). -- Have a GitLab project. -- Have the Maintainer or Owner role for the project. +- Have a GitLab project where you have a Maintainer or Owner role. - Have enabled runner creation for the project. -## Create a project - - - ## Create a project pipeline First, create a `.gitlab-ci.yml`file. This is a `YAML` file where you specify instructions for GitLab CI/CD. @@ -65,10 +57,12 @@ In this file, you define: - echo "Running tests" ``` + In this configuration there are two jobs that the runner runs: a build job and a test job. + ## Create and register a project runner -Next, you'll create a project runner and register it. You must register a runner to link -it to your GitLab instance so that it can pick up jobs from the project pipeline. +Next, you'll create a project runner and register it. You must register the runner to link it +to your GitLab instance so that it can pick up jobs from the project pipeline. To create a project runner: @@ -81,10 +75,37 @@ To create a project runner: the runner can run and are optional. 1. Select **Submit**. 1. Follow the on-screen instructions to register the runner from the command line. When prompted: - - For `executor`, because you are running directly on the host computer, enter `shell`. - - For `GitLab instance URL`, use the URL for your GitLab instance. + - For `executor`, because your runner will run directly on the host computer, enter `shell`. The [executor](https://docs.gitlab.com/runner/executors/) + is the environment where the runner executes the job. + - For `GitLab instance URL`, use the URL for your GitLab instance. For example, if your project + is hosted on `gitlab.example.com/yourname/yourproject`, then your GitLab instance URL is `https://gitlab.example.com`. 1. Start your runner: ```shell gitlab-runner run ``` + +### Runner configuration file + +After you register the runner, the configuration is saved to your `config.toml`. You can use the `config.toml` to +define more [advanced runner configurations](https://docs.gitlab.com/runner/configuration/advanced-configuration.html). + +Here's what your `config.toml` should look like after you register and start the runner: + +```[[runners]] + name = "my-project-runner1" + url = "http://127.0.0.1:3000" + id = 38 + token = "glrt-TOKEN" + token_obtained_at = 2023-07-05T08:56:33Z + token_expires_at = 0001-01-01T00:00:00Z + executor = "shell" +``` + +## Trigger a pipeline to run your runner + +Next, trigger a pipeline to view your runner execute a job. + +1. First step. +1. Another step. +1. Another step. -- GitLab From 441ba2c2e38cf1a6a0c4580e4d9c5d532f17947e Mon Sep 17 00:00:00 2001 From: fneill Date: Thu, 13 Jul 2023 14:34:06 +0200 Subject: [PATCH 03/11] Added page metadata --- doc/tutorials/create_register_first_runner/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 10e76e558f7cda..59f0fc03d0f1b1 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -1,3 +1,9 @@ +--- +stage: Verify +group: Runner +info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments +--- + # Tutorial: Create, register, and run your first self-managed runner This tutorial shows you how to configure and run your first runner in GitLab. -- GitLab From 543c5235552fcdcdf8866067db395362de33aea1 Mon Sep 17 00:00:00 2001 From: fneill Date: Thu, 13 Jul 2023 15:02:33 +0200 Subject: [PATCH 04/11] Added final step --- .../create_register_first_runner/index.md | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 59f0fc03d0f1b1..6636ecdb4a5f4f 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -110,8 +110,39 @@ Here's what your `config.toml` should look like after you register and start the ## Trigger a pipeline to run your runner -Next, trigger a pipeline to view your runner execute a job. +Next, trigger a pipeline in your project so you can view your runner execute a job. -1. First step. -1. Another step. -1. Another step. +1. On the left sidebar, at the top, select **Search GitLab** (**{search}**) to find your project. +1. Select **Build > Pipelines**. +1. Select **Run pipeline**. +1. Select a job to view the job log. The output should look similar to this example, which shows + your runner successfully executing the job: + + ```shell + Running with gitlab-runner 15.11.0 (436955cb) + on my-project-runner TOKEN, system ID: SYSTEM ID + Preparing the "shell" executor + 00:00 + Using Shell (bash) executor... + Preparing environment + 00:00 + /Users/username/.bash_profile: line 9: setopt: command not found + Running on MACHINE-NAME... + Getting source from Git repository + 00:01 + /Users/username/.bash_profile: line 9: setopt: command not found + Fetching changes with git depth set to 20... + Reinitialized existing Git repository in /Users/username/project-repository + Checking out 91b64edf as detached HEAD (ref is master)... + Skipping object checkout, Git LFS is not installed for this repository. + Consider installing it with 'git lfs install'. + Skipping Git submodules setup + Executing "step_script" stage of the job script + 00:00 + /Users/username/.bash_profile: line 9: setopt: command not found + $ echo "Building the project" + Building the project + Job succeeded + ``` + +You have now successfully created, registered, and run your first runner! -- GitLab From 5bd5cdd59b274af6ed67572a2ebdb05c9ff1b82b Mon Sep 17 00:00:00 2001 From: fneill Date: Thu, 13 Jul 2023 15:19:46 +0200 Subject: [PATCH 05/11] Added info about auth token --- doc/tutorials/create_register_first_runner/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 6636ecdb4a5f4f..c5c11704991864 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -93,7 +93,10 @@ To create a project runner: ### Runner configuration file -After you register the runner, the configuration is saved to your `config.toml`. You can use the `config.toml` to +After you register the runner, the configuration and authentication token is saved to your `config.toml`. The runner uses the +token to authenticate with GitLab when picking up jobs from the job queue. + +You can use the `config.toml` to define more [advanced runner configurations](https://docs.gitlab.com/runner/configuration/advanced-configuration.html). Here's what your `config.toml` should look like after you register and start the runner: -- GitLab From d30be0bd11dc5adcdefc9635908b14496664956a Mon Sep 17 00:00:00 2001 From: fneill Date: Mon, 31 Jul 2023 16:01:57 +0200 Subject: [PATCH 06/11] Added some edits --- doc/tutorials/create_register_first_runner/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index c5c11704991864..62b487f47225ff 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -29,12 +29,11 @@ configuration: Before you can create, register, and run a runner you must: - [Install GitLab Runner](https://docs.gitlab.com/runner/install/). -- Have a GitLab project where you have a Maintainer or Owner role. -- Have enabled runner creation for the project. +- Have a GitLab project where you have the Maintainer or Owner role. ## Create a project pipeline -First, create a `.gitlab-ci.yml`file. This is a `YAML` file where you specify instructions for GitLab CI/CD. +First, create a `.gitlab-ci.yml` file. This is a YAML file where you specify instructions for GitLab CI/CD. In this file, you define: @@ -67,7 +66,7 @@ In this file, you define: ## Create and register a project runner -Next, you'll create a project runner and register it. You must register the runner to link it +Next, create a project runner and register it. You must register the runner to link it to your GitLab instance so that it can pick up jobs from the project pipeline. To create a project runner: -- GitLab From 9e5c445013ec12a02dae97822bf1124a3f8230cb Mon Sep 17 00:00:00 2001 From: Fiona Neill Date: Mon, 31 Jul 2023 14:13:04 +0000 Subject: [PATCH 07/11] Apply 3 suggestion(s) to 1 file(s) --- doc/tutorials/create_register_first_runner/index.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 62b487f47225ff..66631583186da1 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -4,7 +4,7 @@ group: Runner info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments --- -# Tutorial: Create, register, and run your first self-managed runner +# Tutorial: Create, register, and run your first self-managed runner **FREE** This tutorial shows you how to configure and run your first runner in GitLab. @@ -20,9 +20,9 @@ GitLab has three types of runners: For this tutorial, you'll create a project runner to run jobs defined in a basic pipeline configuration: -1. [Create a project pipeline](#create-a-project-pipeline) -1. [Create and register a project runner](#create-and-register-a-project-runner) -1. [Trigger a pipeline to run your runner](#trigger-a-pipeline-to-run-your-runner) +1. [Create a project pipeline](#create-a-project-pipeline). +1. [Create and register a project runner](#create-and-register-a-project-runner). +1. [Trigger a pipeline to run your runner](#trigger-a-pipeline-to-run-your-runner). ## Prerequisites @@ -100,7 +100,8 @@ define more [advanced runner configurations](https://docs.gitlab.com/runner/conf Here's what your `config.toml` should look like after you register and start the runner: -```[[runners]] +```toml + [[runners]] name = "my-project-runner1" url = "http://127.0.0.1:3000" id = 38 -- GitLab From d8a4ce019d07d8eef6bdffb85a9c7a7babdd7820 Mon Sep 17 00:00:00 2001 From: Kati Paizee Date: Wed, 2 Aug 2023 14:12:25 +0000 Subject: [PATCH 08/11] Apply 8 suggestion(s) to 1 file(s) --- .../create_register_first_runner/index.md | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 66631583186da1..04ec120925f320 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -4,7 +4,7 @@ group: Runner info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments --- -# Tutorial: Create, register, and run your first self-managed runner **FREE** +# Tutorial: Create, register, and run your own project runner **(FREE)** This tutorial shows you how to configure and run your first runner in GitLab. @@ -28,7 +28,7 @@ configuration: Before you can create, register, and run a runner you must: -- [Install GitLab Runner](https://docs.gitlab.com/runner/install/). +- [Install GitLab Runner](https://docs.gitlab.com/runner/install/) on a local computer. - Have a GitLab project where you have the Maintainer or Owner role. ## Create a project pipeline @@ -42,32 +42,32 @@ In this file, you define: 1. On the left sidebar, at the top, select **Search GitLab** (**{search}**) to find your project or group. 1. Select **Project overview**. -1. Select the plus icon ({plus}), then select **New file**. +1. Select the plus icon (**{plus}**), then select **New file**. 1. In the **Filename** field, enter `.gitlab-ci.yml`. 1. In the large text box, paste this sample configuration: - ```yaml - stages: + ```yaml + stages: - build - test - job_build: + job_build: stage: build script: - - echo "Building the project" + - echo "Building the project" - job_test: + job_test: stage: test script: - - echo "Running tests" - ``` + - echo "Running tests" + ``` - In this configuration there are two jobs that the runner runs: a build job and a test job. + In this configuration there are two jobs that the runner runs: a build job and a test job. ## Create and register a project runner Next, create a project runner and register it. You must register the runner to link it -to your GitLab instance so that it can pick up jobs from the project pipeline. +to GitLab so that it can pick up jobs from the project pipeline. To create a project runner: @@ -78,19 +78,20 @@ To create a project runner: 1. Select your operating system. 1. In the **Tags** section, select the **Run untagged** checkbox. [Tags](../../ci/runners/configure_runners.md#use-tags-to-control-which-jobs-a-runner-can-run) specify which jobs the runner can run and are optional. -1. Select **Submit**. +1. Select **Create runner**. 1. Follow the on-screen instructions to register the runner from the command line. When prompted: - For `executor`, because your runner will run directly on the host computer, enter `shell`. The [executor](https://docs.gitlab.com/runner/executors/) is the environment where the runner executes the job. - For `GitLab instance URL`, use the URL for your GitLab instance. For example, if your project is hosted on `gitlab.example.com/yourname/yourproject`, then your GitLab instance URL is `https://gitlab.example.com`. + If your project is hosted on GitLab.com, the URL is `https://gitlab.com`. 1. Start your runner: ```shell gitlab-runner run ``` -### Runner configuration file +### Check the runner configuration file After you register the runner, the configuration and authentication token is saved to your `config.toml`. The runner uses the token to authenticate with GitLab when picking up jobs from the job queue. -- GitLab From d3e0fa52a8330ba5816437dee4d2c4a34d83a1c0 Mon Sep 17 00:00:00 2001 From: fneill Date: Wed, 2 Aug 2023 16:29:33 +0200 Subject: [PATCH 09/11] Incorporated review feedback --- .../create_register_first_runner/index.md | 39 +++++++++++++++---- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index 04ec120925f320..d8798975613b93 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -20,20 +20,41 @@ GitLab has three types of runners: For this tutorial, you'll create a project runner to run jobs defined in a basic pipeline configuration: +1. [Create a blank project](#create-a-blank-project) 1. [Create a project pipeline](#create-a-project-pipeline). 1. [Create and register a project runner](#create-and-register-a-project-runner). 1. [Trigger a pipeline to run your runner](#trigger-a-pipeline-to-run-your-runner). -## Prerequisites +## Prerequisite -Before you can create, register, and run a runner you must: +Before you can create, register, and run a runner, [GitLab Runner](https://docs.gitlab.com/runner/install/) must be installed on a local computer. -- [Install GitLab Runner](https://docs.gitlab.com/runner/install/) on a local computer. -- Have a GitLab project where you have the Maintainer or Owner role. +## Create a blank project + +First, create a blank project where you can create your CI/CD pipeline and runner. + +To create a blank project: + +1. On the left sidebar, at the top, select **Create new** (**{plus}**) and **New project/repository**. +1. Select **Create blank project**. +1. Enter the project details: + - In the **Project name** field, enter the name of your project. The name must start with a lowercase or uppercase letter (`a-zA-Z`), digit (`0-9`), emoji, or underscore (`_`). It can also contain dots (`.`), pluses (`+`), dashes (`-`), or spaces. + - In the **Project slug** field, enter the path to your project. The GitLab instance uses the + slug as the URL path to the project. To change the slug, first enter the project name, + then change the slug. + - In the **Project deployment target (optional)** field, select your project's deployment target. + This information helps GitLab better understand its users and their deployment requirements. + - To modify the project's [viewing and access rights](../public_access.md) for + users, change the **Visibility Level**. + - To create README file so that the Git repository is initialized, has a default branch, and + can be cloned, select **Initialize repository with a README**. + - To analyze the source code in the project for known security vulnerabilities, + select **Enable Static Application Security Testing (SAST)**. +1. Select **Create project**. ## Create a project pipeline -First, create a `.gitlab-ci.yml` file. This is a YAML file where you specify instructions for GitLab CI/CD. +Next, create a `.gitlab-ci.yml` file for your project. This is a YAML file where you specify instructions for GitLab CI/CD. In this file, you define: @@ -62,7 +83,8 @@ In this file, you define: - echo "Running tests" ``` - In this configuration there are two jobs that the runner runs: a build job and a test job. + In this configuration there are two jobs that the runner runs: a build job and a test job. +1. Select **Commit changes**. ## Create and register a project runner @@ -123,7 +145,7 @@ Next, trigger a pipeline in your project so you can view your runner execute a j your runner successfully executing the job: ```shell - Running with gitlab-runner 15.11.0 (436955cb) + Running with gitlab-runner 16.2.0 (782e15da) on my-project-runner TOKEN, system ID: SYSTEM ID Preparing the "shell" executor 00:00 @@ -137,7 +159,7 @@ Next, trigger a pipeline in your project so you can view your runner execute a j /Users/username/.bash_profile: line 9: setopt: command not found Fetching changes with git depth set to 20... Reinitialized existing Git repository in /Users/username/project-repository - Checking out 91b64edf as detached HEAD (ref is master)... + Checking out 7226fc70 as detached HEAD (ref is main)... Skipping object checkout, Git LFS is not installed for this repository. Consider installing it with 'git lfs install'. Skipping Git submodules setup @@ -147,6 +169,7 @@ Next, trigger a pipeline in your project so you can view your runner execute a j $ echo "Building the project" Building the project Job succeeded + ``` You have now successfully created, registered, and run your first runner! -- GitLab From 91efc0784e04b390f7d44aa302a6860529696f58 Mon Sep 17 00:00:00 2001 From: fneill Date: Thu, 3 Aug 2023 10:23:15 +0200 Subject: [PATCH 10/11] Fixed broken link --- doc/tutorials/create_register_first_runner/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index d8798975613b93..f6a1f6122e851b 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -44,7 +44,7 @@ To create a blank project: then change the slug. - In the **Project deployment target (optional)** field, select your project's deployment target. This information helps GitLab better understand its users and their deployment requirements. - - To modify the project's [viewing and access rights](../public_access.md) for + - To modify the project's [viewing and access rights](../../user/public_access.md) for users, change the **Visibility Level**. - To create README file so that the Git repository is initialized, has a default branch, and can be cloned, select **Initialize repository with a README**. -- GitLab From 9407413eec4051e7a9c8869e343901c31c067b47 Mon Sep 17 00:00:00 2001 From: Kati Paizee Date: Thu, 3 Aug 2023 12:14:00 +0000 Subject: [PATCH 11/11] Apply 2 suggestion(s) to 1 file(s) --- doc/tutorials/create_register_first_runner/index.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/doc/tutorials/create_register_first_runner/index.md b/doc/tutorials/create_register_first_runner/index.md index f6a1f6122e851b..09487c2378f4f2 100644 --- a/doc/tutorials/create_register_first_runner/index.md +++ b/doc/tutorials/create_register_first_runner/index.md @@ -42,14 +42,6 @@ To create a blank project: - In the **Project slug** field, enter the path to your project. The GitLab instance uses the slug as the URL path to the project. To change the slug, first enter the project name, then change the slug. - - In the **Project deployment target (optional)** field, select your project's deployment target. - This information helps GitLab better understand its users and their deployment requirements. - - To modify the project's [viewing and access rights](../../user/public_access.md) for - users, change the **Visibility Level**. - - To create README file so that the Git repository is initialized, has a default branch, and - can be cloned, select **Initialize repository with a README**. - - To analyze the source code in the project for known security vulnerabilities, - select **Enable Static Application Security Testing (SAST)**. 1. Select **Create project**. ## Create a project pipeline @@ -83,7 +75,7 @@ In this file, you define: - echo "Running tests" ``` - In this configuration there are two jobs that the runner runs: a build job and a test job. + In this configuration there are two jobs that the runner runs: a build job and a test job. 1. Select **Commit changes**. ## Create and register a project runner -- GitLab