Bitbucket

Overview

Connect Bitbucket 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 Bitbucket organization variable.
provider:
  environment:
    # Copy your Bitbucket organization from the repository URL address
    # Bitbucket organization for example is: "https://bitbucket.org/lumigo-io"
    GIT_ORGANIZATION: **Bitbucket organization**
functions:
  myFunction:
    environment:
      # Copy your Bitbucket organization from the repository URL address
      # Bitbucket organization for example is: "https://bitbucket.org/lumigo-io"
      GIT_ORGANIZATION: **Bitbucket 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 Bitbucket.