Job is on hold when apply deployment event to clone

@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.