In CloudBees Feature Management, Audiences allow you to leverage product and user data to segment who can view certain flags at certain times. This is incredibly powerful, as you’ll be able to release features around user properties such as location, device type, and language. Audiences can segment flags by different types of properties, including dynamic target groups using custom attributes that are evaluated at run time.
There are different ways to segment audiences:
There are also different methods for "rolling" or gradually deploying your features flags to these segments, including:
Go to CloudBees Feature Management dashboard.
Click on Flags in Environment on the left panel, select the environment.
Select a Feature Flag which was already added to the core or create a new Feature flag using the Create Flag button.
Once you are at the Audiences tab of a specific feature flag, you can configure this feature flag value and release audience.
The dropdown menu next to set to allows you to select the flag value.
For boolean flags select either True, False, Split or Scheduled. Split allows you to select the percentage of the True/Flase values. Scheduled allows you to schedule a deployment date.
Click Save Targeting or open the dropdown menu and click Save & Activate Targeting (if targeting is Off)
You can add new conditions such as version, property, target group or feature flags.
To add conditions for feature flags from the feature flag details view:
Click Add New Condition. The new condition is framed as the if while the default condition becomes the else.
Click the drop down arrow in the Version box.
Select either Versions or All Versions.
Click the drop down arrow in the All Users box.
Select either All Users, Property, Target Group, or Flags.
Click Save Targeting.
|If your feature flag is a multivariate flag, the Audiences tab presents all the flag variants as they appear in the code.|
The following are elements that you can evaluate to segment your deployment:
A free text field that does a SemVer comparison to the version set in
<, >, =, !=
A custom property that you can create from any data that exists in your application. See custom properties for more information.
Boolean, String, Number
A group of users that you can create. Target Groups for more information.
Matches any of, Matches all, Matches none of
A flag value. See Flag Dependencies for more information.