Skip to main content

Integrating LaunchDarkly feature flags

Abstract

A feature flag in LaunchDarkly describes the different variations of a feature and the rules that allow different entities to access them. You can follow your application's feature flags through the integration between LaunchDarkly and Bitrise.

A feature flag in LaunchDarkly describes the different variations of a feature and the rules that allow different entities to access them. You can follow your application's feature flags through the integration between LaunchDarkly and Bitrise. To do so, you'll need to:

Connecting your LaunchDarkly account to Bitrise

  1. Make sure you are logged in to LaunchDarkly.

  2. Open Bitrise.

  3. In the upper right corner, open the account selector dropdown menu.

  4. Select the Account settings option.

    account-settings.png
  5. On the left, select Feature flags.

  6. In the LaunchDarkly section, click the Connect button.

    launchdarkly.gif
  7. You will be redirected to LaunchDarkly. Click Authorize.

You now should have access to your LaunchDarkly project data in Release Management.

Selecting your LaunchDarkly project and environment

After you’ve connected your LaunchDarkly account to Bitrise, you will have access to your LaunchDarkly projects in Release Management.

To select a LaunchDarkly project and environment for your connected app:

  1. Log in to Bitrise, and from the left sidebar, select Releases.

  2. From the Connected apps list, select your app.

    rm-overview-connected.png
  3. On the left sidebar, select Feature flags.

  4. Click Change in the Project and environment section. It opens a dialog where you can edit the LaunchDarkly configuration for this connected app.

    launchdarkly.png
  5. In the dialog window, select the LaunchDarkly project you wish to connect from the list and select the LaunchDarkly project environment you wish to use.

  6. Select a LaunchDarkly project and environment.

    existing-launchdarkly-config.png
  7. Click Save changes.

Once done, you should be able to see the feature flags of the LaunchDarkly project in each release of the app.