# Start service only on specific branches

**URL:** <https://drone.discourse.group/t/start-service-only-on-specific-branches/5471>\
**Category:** Drone Support\
**Created:** [March 13, 2020, 11:18am UTC](https://drone.discourse.group/t/start-service-only-on-specific-branches/5471 "2020-03-13T11:18:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandorholozsnyak](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/nandorholozsnyak/32/5620_2.png) [@nandorholozsnyak](https://drone.discourse.group/u/nandorholozsnyak)\
**Post date:** [March 13, 2020, 11:18am UTC](https://drone.discourse.group/t/start-service-only-on-specific-branches/5471/1 "2020-03-13T11:18:36Z")

</div>

Hey.

I’m looking forward for an answer if Drone supports condition based services or not, so for example I would like to run my integration tests only on the ‘master’ branch and it would need 3 services to run, but I do not want to run them on other for example feature branches.

Does Drone support this kind of requirement?

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [March 13, 2020, 4:14pm UTC](https://drone.discourse.group/t/start-service-only-on-specific-branches/5471/2 "2020-03-13T16:14:39Z")

</div>

yes, you can use a [when](https://docs.drone.io/pipeline/docker/syntax/conditions/) clause with any pipeline step or service.

---

<div class="post-metadata">

**Author:** ![nandorholozsnyak](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/nandorholozsnyak/32/5620_2.png) [@nandorholozsnyak](https://drone.discourse.group/u/nandorholozsnyak)\
**Post date:** [March 16, 2020, 9:35am UTC](https://drone.discourse.group/t/start-service-only-on-specific-branches/5471/3 "2020-03-16T09:35:30Z")

</div>

It works, thank you 😉
