gitlab-org--gitlab-foss/doc/ci
2021-05-26 15:10:57 +00:00
..
caching Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
chatops Add latest changes from gitlab-org/gitlab@master 2021-05-21 06:11:06 +00:00
ci_cd_for_external_repos Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
cloud_deployment Add latest changes from gitlab-org/gitlab@master 2021-05-18 18:10:54 +00:00
directed_acyclic_graph Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
docker Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
environments Add latest changes from gitlab-org/gitlab@master 2021-05-20 15:10:13 +00:00
examples Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
img Add latest changes from gitlab-org/gitlab@master 2021-03-12 21:09:12 +00:00
interactive_web_terminal Add latest changes from gitlab-org/gitlab@master 2020-12-08 18:10:08 +00:00
introduction Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
jobs Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
large_repositories Add latest changes from gitlab-org/gitlab@master 2021-01-25 21:09:03 +00:00
merge_request_pipelines Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
migration Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
pipeline_editor Add latest changes from gitlab-org/gitlab@master 2021-05-14 09:10:24 +00:00
pipelines Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
quick_start Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
review_apps Add latest changes from gitlab-org/gitlab@master 2021-03-12 18:09:23 +00:00
runners Add latest changes from gitlab-org/gitlab@master 2021-05-21 15:10:51 +00:00
secrets Add latest changes from gitlab-org/gitlab@master 2021-04-03 00:09:02 +00:00
services Add latest changes from gitlab-org/gitlab@master 2021-05-21 06:11:06 +00:00
ssh_keys Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
test_cases Add latest changes from gitlab-org/gitlab@master 2021-03-09 03:09:36 +00:00
triggers Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
variables Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
yaml Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
enable_or_disable_ci.md Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
git_submodules.md Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
lint.md Add latest changes from gitlab-org/gitlab@master 2021-02-05 09:09:10 +00:00
metrics_reports.md Add latest changes from gitlab-org/gitlab@master 2021-04-14 03:09:18 +00:00
multi_project_pipelines.md Add latest changes from gitlab-org/gitlab@master 2021-05-24 15:10:27 +00:00
parent_child_pipelines.md Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
README.md Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
troubleshooting.md Add latest changes from gitlab-org/gitlab@master 2021-05-26 15:10:57 +00:00
unit_test_reports.md Add latest changes from gitlab-org/gitlab@master 2021-05-14 00:11:05 +00:00

stage group info comments description type
Verify Pipeline Execution To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments false Learn how to use GitLab CI/CD, the GitLab built-in Continuous Integration, Continuous Deployment, and Continuous Delivery toolset to build, test, and deploy your application. index

GitLab CI/CD (FREE)

GitLab CI/CD is a tool built into GitLab for software development through the continuous methodologies:

  • Continuous Integration (CI)
  • Continuous Delivery (CD)
  • Continuous Deployment (CD)

NOTE: Out-of-the-box management systems can decrease hours spent on maintaining toolchains by 10% or more. Watch our "Mastering continuous software development" webcast to learn about continuous methods and how the GitLab built-in CI can help you simplify and scale software development.

Continuous Integration works by pushing small code chunks to your application's codebase hosted in a Git repository, and to every push, run a pipeline of scripts to build, test, and validate the code changes before merging them into the main branch.

Continuous Delivery and Deployment consist of a step further CI, deploying your application to production at every push to the default branch of the repository.

These methodologies allow you to catch bugs and errors early in the development cycle, ensuring that all the code deployed to production complies with the code standards you established for your app.

GitLab can also automatically detect, build, test, deploy, and monitor your applications by using Auto DevOps.

For a complete overview of these methodologies and GitLab CI/CD, read the Introduction to CI/CD with GitLab.

Video demonstration of GitLab CI/CD: Demo: CI/CD with GitLab.

Concepts

GitLab CI/CD uses a number of concepts to describe and run your build and deploy.

Concept Description
Pipelines Structure your CI/CD process through pipelines.
CI/CD variables Reuse values based on a variable/value key pair.
Environments Deploy your application to different environments (e.g., staging, production).
Job artifacts Output, use, and reuse job artifacts.
Cache dependencies Cache your dependencies for a faster execution.
GitLab Runner Configure your own runners to execute your scripts.
Pipeline efficiency Configure your pipelines to run quickly and efficiently.
Test cases Configure your pipelines to run quickly and efficiently.

Configuration

GitLab CI/CD supports numerous configuration options:

Configuration Description
Schedule pipelines Schedule pipelines to run as often as you need.
Custom path for .gitlab-ci.yml Define a custom path for the CI/CD configuration file.
Git submodules for CI/CD Configure jobs for using Git submodules.
SSH keys for CI/CD Using SSH keys in your CI pipelines.
Pipeline triggers Trigger pipelines through the API.
Pipelines for Merge Requests Design a pipeline structure for running a pipeline in merge requests.
Integrate with Kubernetes clusters Connect your project to Google Kubernetes Engine (GKE) or an existing Kubernetes cluster.
Optimize GitLab and GitLab Runner for large repositories Recommended strategies for handling large repositories.
.gitlab-ci.yml full reference All the attributes you can use with GitLab CI/CD.

Note that certain operations can only be performed according to the user and job permissions.

Feature set

Use the vast GitLab CI/CD to easily configure it for specific purposes. Its feature set is listed on the table below according to DevOps stages.

Feature Description
Configure
Auto DevOps Set up your app's entire lifecycle.
ChatOps Trigger CI jobs from chat, with results sent back to the channel.
-------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------
Verify
Browser Performance Testing Quickly determine the browser performance impact of pending code changes.
Load Performance Testing Quickly determine the server performance impact of pending code changes.
CI services Link Docker containers with your base image.
Code Quality Analyze your source code quality.
GitLab CI/CD for external repositories (PREMIUM) Get the benefits of GitLab CI/CD combined with repositories in GitHub and Bitbucket Cloud.
Interactive Web Terminals (FREE SELF) Open an interactive web terminal to debug the running jobs.
Unit test reports Identify script failures directly on merge requests.
Using Docker images Use GitLab and GitLab Runner with Docker to build and test applications.
-------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------
Release
Auto Deploy Deploy your application to a production environment in a Kubernetes cluster.
Building Docker images Maintain Docker-based projects using GitLab CI/CD.
Canary Deployments Ship features to only a portion of your pods and let a percentage of your user base to visit the temporarily deployed feature.
Deploy Boards Check the current health and status of each CI/CD environment running on Kubernetes.
Feature Flags (PREMIUM) Deploy your features behind Feature Flags.
GitLab Pages Deploy static websites.
GitLab Releases Add release notes to Git tags.
Review Apps Configure GitLab CI/CD to preview code changes.
Cloud deployment Deploy your application to a main cloud provider.
-------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------
Secure
Container Scanning (ULTIMATE) Check your Docker containers for known vulnerabilities.
Dependency Scanning (ULTIMATE) Analyze your dependencies for known vulnerabilities.
License Compliance (ULTIMATE) Search your project dependencies for their licenses.
Security Test reports (ULTIMATE) Check for app vulnerabilities.

Examples

Find example project code and tutorials for using GitLab CI/CD with a variety of app frameworks, languages, and platforms on the CI Examples page.

Administration (FREE SELF)

As a GitLab administrator, you can change the default behavior of GitLab CI/CD for:

See also:

References

Why GitLab CI/CD?

Learn more about:

See also the Why CI/CD? presentation.

Breaking changes

As GitLab CI/CD has evolved, certain breaking changes have been necessary. These are:

13.0

12.0

11.0

  • No breaking changes.

10.0

  • No breaking changes.