# Job is on hold when apply deployment event to clone

**URL:** <https://drone.discourse.group/t/job-is-on-hold-when-apply-deployment-event-to-clone/11544>\
**Category:** Drone Support\
**Created:** [October 13, 2017, 2:15am UTC](https://drone.discourse.group/t/job-is-on-hold-when-apply-deployment-event-to-clone/11544 "2017-10-13T02:15:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)\
**Post date:** [October 13, 2017, 2:15am UTC](https://drone.discourse.group/t/job-is-on-hold-when-apply-deployment-event-to-clone/11544/1 "2017-10-13T02:15:22Z")

</div>

@bradrydzewski

Can we apply deployment event condition to part of `clone` in `.drone.yml`? If not, could we have this feature?

I have matrix setting in `.drone.yml`, it will trigger more than 20 builds every time with new commit. So I’d like to control it via deployment event.

I did that for pipeline steps, works well, but doens’t work for `clone`

```
clone:
  git:
    image: plugins/git
    path: bitbucket.org/orig/project-1
    when:
      branches: [master, feature/*]
      event: deployment
      environment: ["apply", "destroy”]

pipeline:
…

matrix:
  env:
    - development
    - staging
application:
   - app-1
   - app-2
   ....

```

Then this commit always stay as pending status, I click the build job, always `loading`.

 ![36 pm](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/1X/ee88257f178920eeed34f40c521fb18d54d248e4.png)

 ![21 pm](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/1X/742d0fe3488ff303174d804b95c588c9317cb933.png)
