GitLab

Overview

Connect GitLab to Lumigo to identify suspect commits that are likely the cause of issues. Currently, this option is available only for Serverless Framework.

Get Started

  1. Install the serverless-plugin-git-variables plugin.
  2. Add to your Serverless.yml file the version control software organization variable.
provider:
  environment:
    # Copy your GitLab organization from the repository URL address
    # GitLab organization for example is: "https://gitlab.com/lumigo-io"
    GIT_ORGANIZATION: **GitLab organization**
functions:
  myFunction:
    environment:ֿ
      # Copy your GitLab organization from the repository URL address
      # GitLab organization for example is: "https://gitlab.com/lumigo-io"
      GIT_ORGANIZATION: **GitLab organization**
📘

Don't want to use the "serverless-plugin-git-variables"?

All you need to do is add two more variables:

  • GIT_COMMIT_LONG - A hash value containing the commit Lumigo wants to point to (you can use the "git rev-parse HEAD" command).
  • GIT_REPOSITORY - Name of the repository as it appears in GitLab.