LaunchDarkly Developer Documentation

Get started in under 30 minutes.
LaunchDarkly provides feature flags as a service for Java · Python · Ruby · Go · Node.js · PHP · .NET. Control feature launches -- who sees what and when -- without multiple code deploys. Easy dashboard for phased rollouts, targeting and segmenting.
Need more help? write us at support@launchdarkly.com

Get Started    Guides

Bitbucket Pipelines

Using LaunchDarkly with Bitbucket Pipelines

Bitbucket Pipelines is a continuous delivery platform that lets your team build, test, and deploy from Bitbucket. It is built right within Bitbucket, giving you end-to-end visibility from coding to deployment.

This LaunchDarkly integration lets you insert feature flag actions directly into your Pipeline's continuous delivery flow.

At the moment, we provide two scripts that you can add to your pipelines:

  • Create feature flags in your Pipelines build
    • This lets you create feature flags within a specified project. The feature flag will be created in all environments for that project.
  • Enable a feature flag in your Pipelines build
    • This lets you turn on a specific feature flag for a specific environment within a project.

Prerequisites

Create feature flags in your Pipelines build

You can configure a Pipeline step to create a set of feature flags in LaunchDarkly as part of your build process.

  • Copy the create-launchdarkly-flags.sh shell script from our repository into your own
  • Add create-launchdarkly-flags.sh to your Pipelines build configuration
  • Add two environment variables to your Pipelines settings:
  • Add an ld-flags.conf file to your repository. When your pipelines build runs, any feature flags declared in this file will be created in LaunchDarkly.

Enable a feature flag in your Pipelines build

You can configure a Pipeline step that enables an existing feature flag in an environment as part of your build.

  • Copy the enable-launchdarkly-flags.sh shell script from our repository into your own
  • Add enable-launchdarkly-flags.sh to your Pipelines build configuration
  • Add two environment variables to your Pipelines settings:

Bitbucket Pipelines


Using LaunchDarkly with Bitbucket Pipelines

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.