---
title: "Merge Control: Test-driven development with merge control and continuous integration"
description: "### Workzone Auto-Merge with Continuous Integration Systems Workzone can be set up to automatically merge a pull request triggered by build results. For example, you may have a user-based review and approval process for the pull request from feature and…"
url: "https://izymes.com/docs/workzone-merge-control-test-driven-development-with-merge-control-and-continuous-integration/"
updated: "2023-12-14"
category: Feature Guide Workzone
---

# Merge Control: Test-driven development with merge control and continuous integration

### Workzone Auto-Merge with Continuous Integration Systems

Workzone can be set up to automatically merge a pull request triggered by build results. For example, you may have a user-based review and approval process for the pull request from feature and bugfix branches to develop/release branches. The next pull request from develop to master branch doesn’t really need a user-based review. However you want to make sure it built and ran all tests successfully.

- In Bitbucket > Repository Settings > Pull Requests : require 1 successful build
- In Bitbucket > Repository Settings > Workzone : define an auto-merge configuration for develop >> master with ‘Watch Build Result’ turned on

![](https://izymes.com/wp-content/uploads/2022/06/Group-105-2.png)

 In Bamboo or Jenkins or any other CI system that implements the Bitbucket Build Notification  REST API set up build result notifications to Bitbucket.

**Bamboo**

Set up an [application link between Bamboo and Bitbucket](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Stash). Build result notification requests are automatically sent to Bitbucket. Supported Authentication Types: OAuth, Basic Auth

**Jenkins**

Install the Bitbucket[ Notifier Plugin](https://wiki.jenkins-ci.org/display/JENKINS/StashNotifier+Plugin) and add the Bitbucket base URL and credentials to your plan to send build result notifications. Supported Authentication Types: Basic Auth

         [Try Workzone!](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview)
