# Drone for multi projects in same repository

**URL:** https://drone.discourse.group/t/drone-for-multi-projects-in-same-repository/9702
**Category:** Drone Support
**Created:** [January 13, 2021, 8:36pm UTC](https://drone.discourse.group/t/drone-for-multi-projects-in-same-repository/9702 "2021-01-13T20:36:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mav](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/mav/32/2651_2.png) [@Mav](https://drone.discourse.group/u/Mav)
#### Post date: [January 13, 2021, 8:36pm UTC](https://drone.discourse.group/t/drone-for-multi-projects-in-same-repository/9702/1 "2021-01-13T20:36:53Z")

</div>

hello there

I try to get drone working for my multi project repository. I have the following structure:  
/.drone.yml  
/frontend/ \< everything angular… build with npm  
/backend/ \> everything java… build with gradle

Read the documentation but didn’t find anything about setting the directory for a pipeline.

My current .drone.yml isn’t working:

```
kind: pipeline
type: docker
name: backend

steps:
- name: build
  image: gradle:jdk11
  commands:
  - gradle assemble
  - gradle check

```

I get the following error: Task ‘assemble’ not found in root project. Which make sense, because it’s not executing the command in /backend

When /backend works, I will add frontend as new pipeline

---

<div class="post-metadata">

### Author: ![csgitharness](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/csgitharness/32/904_2.png) [@csgitharness](https://drone.discourse.group/u/csgitharness)
#### Post date: [January 22, 2021, 1:04pm UTC](https://drone.discourse.group/t/drone-for-multi-projects-in-same-repository/9702/2 "2021-01-22T13:04:21Z")

</div>

Hello Mav,

Could you please check if this extension [GitHub - bitsbeats/drone-tree-config: Drone helper for mono repositories.](https://github.com/bitsbeats/drone-tree-config) will help, so that you can have multiple yml file within /backend and /frontend project directory.

You may also want to have a look [Report files changed to limit testing scope · Issue #1021 · drone/drone · GitHub](https://github.com/drone/drone/issues/1021) for more information.

Let us know if this helps.
