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:

  1. Connect your LaunchDarkly account to Bitrise.

  2. Connect your LaunchDarkly project to your Bitrise app's releases in Release Management.

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.

Connecting your LaunchDarkly project to your app releases

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

Start a release first

Make sure you started at least one release for your app in Release Management before attempting to connect LaunchDarkly.

  1. Open the app in Release Management.

  2. On the main page, open the Settings menu.

  3. Select Feature flags.

  4. Find the App in store table.

  5. Click the Edit button next to your app.

  6. 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.

    launchdarkly-project.gif
  7. Click Save.

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