Configure bitbucket.org Webhook
* 
The bitbucket repository integration is limited to the repositories created by individual bitbucket user accounts.
Make sure there is no repository in the Codebeamer project with the same name.
Use Existing External Repository is not supported! The webhook execution after the first push will create the repository.
The pusher will always be the user in the Application configuration under bitbucket node. Make sure there is a Codebeamer user with the same username.
Configure codebeamer
There are two important tasks that you can perform in the Codebeamer:
1. Create user(s) who has the same username as the pusher(s) in Bitbucket.
2. Add the secret token of the webhook to Codebeamer configuration (see below).
Steps to configure secret token in Codebeamer:
Go to Codebeamer's System Admin page
Go to Application Configuration.
Add scc node if it is not exist in your json (json root level).
Add bitbucket node if it is not exist in your json under scc node.
Add baseUrl: https://bitbucket.org/ under bitbucket node.
Add username: <bitbucket_username> under bitbucket node, where the bitbucket_username is a bitbucket username who has access to the repository. It is necessary for Bitbucket API calls.
Add password: <bitbucket_password> under bitbucket node where bitbucket_password is the password for the given bitbucket user. It is necessary for Bitbucket API calls. After you save the configuration the password will be encrypted.
Configure bitbucket.org webhook
Steps to configure bitbucket.org webhook:
Navigate to the Settings page of a repository.
Choose Webhooks menu.
Click on Webhooks.
Fill out the fields.
Title: Title of your choice.
URL: <Codebeamer_url>/rest/scm/bitbucket/<project_id> Where Codebeamer_url is the url of your Codebeamer and project_id is the id of your project where the Bitbucket repository will belong to after the first webhook execution.
Example: https://Codebeamer.com/cb/rest/scm/bitbucket/1.
Status: Active; checked (default).
Check/Uncheck SSL/TLS according to your Codebeamer server SSL configuration.
Triggers: Repository push (Codebeamer supports only push event).
Click on Save.
Creating APP passwords for Bitbucket users
The basic Bitbucket authentication has been changed since 1 March 2022, to improve account security. Therefore, APP passwords are required for Bitbucket users.
To create the passwords, see App passwords.
* 
The change has no effect on users with SSH keys used to authenticate with Git.
* 
In the Application Configuration, the password of the user needs to be replaced by the created App password.
Was this helpful?