All Collections
Behave Pro Server and Datacenter
Bitbucket Integration
Enable Feature File Synchronisation on Git Push in Bitbucket
Enable Feature File Synchronisation on Git Push in Bitbucket

Enable the git post receive hook in Bitbucket in order to update the feature files in Jira when anyone pushes a commit to your repository.

Alan Parkinson avatar
Written by Alan Parkinson
Updated over a week ago

When anyone creates, updates, or deletes a feature or a scenario within your Jira project, the changes are pushed to your Bitbucket repository. To enable receiving changes from the Bitbucket (when someone pushes a commit to your repository with new feature changes) you will need to enable the "Post receive" hook called "Behave Pro Bitbucket Post Hook" within the Bitbucket repository settings.

Note: This post receive hook is enabled automatically when you finish the Behave Pro project set up flow in your Jira project.

First, navigate to the Bitbucket repository settings page and click on the "Hooks" in the left navigation menu.

Next, in the "Post receive" section at the bottom, find the Behave Pro hook named "Sync to Jira" and enable it.

That's all. Now if you push your commit to this repository, the Behave Pro for Jira will pick up the changes and updates any features if there were any changes.ย 

Note! This works only if you have pushed the changes to the branch that is being used by the Behave Pro (the branch you have chosen during the project setup-up). If you are using branching workflow, this post receive hook will also work on those branches created when adding a scenario to a Jira issue.

Did this answer your question?