Bitbucket: Feature Flag Code Usages
Get the integration on the Bitbucket Marketplace
Bitbucket Pipelines Pipe: DevCycle Code References
Code References of DevCycle Variables pushed to DevCycle
With this Bitbucket pipeline, your DevCycle dashboard will be updated to display code snippets for each DevCycle variable usage within your project.
Note: This is intended to run when pushing changes to your main branch
Example Output
YAML Definition
Add the following snippet to your bitbucket-pipelines.yml
file:
branches:
main:
- step:
script:
- pipe: devcyclehq/bitbucket-code-refs-pipe:1.0.3
variables:
PROJECT_KEY: '<string>'
CLIENT_ID: '<string>'
CLIENT_SECRET: '<string>'
Variables
- To add variables to be used in the
bitbucket-pipelines.yml
, an admin must add Repository Variables inRepository Settings > Repository Variables
, and then add all necessary variables as secured variables
Variable | Usage |
---|---|
PROJECT_KEY (*) | Your DevCycle project key, see Projects |
CLIENT_ID (*) | Your organization's API client ID, see Organization Settings |
CLIENT_SECRET (*) | Your organization's API client secret, see Organization Settings |
(*) = required variable.
Prerequisites
- Create a new Project & a new Feature
- Grab the PROJECT_KEY in Projects, and find your specific project name & key
- Grab the CLIENT_ID in Settings, under
API AUTHENTICATION
- Grab the CLIENT_SECRET in Settings, under
API AUTHENTICATION
Examples
Example:
- pipe: devcyclehq/bitbucket-code-refs-pipe:1.0.3
variables:
PROJECT_KEY: $PROJECT_KEY
CLIENT_ID: $CLIENT_ID
CLIENT_SECRET: $CLIENT_SECRET
Support
The pipe is maintained by [email protected].
If you are reporting an issue, please include:
- the version of the pipe
- relevant logs and error messages
- steps to reproduce