Manual Builds do not work but builds on push work

Unsure as to what I am doing wrong, but when I click on “New build”, the build isn’t started and I see this error in the logs:

"event":"custom","level":"info","msg":"trigger: skipping pipeline, does not match event","pipeline":"default"

However, when I push something to the repo, the auto build works just fine.

Here is my .drone.yml file if that helps:

---
kind: pipeline
type: docker
name: default

steps:
- name: build 
  image: ruby
  commands:
  - gem install bundler
  - bundle install
  - bundle exec jekyll build
  environment:
    JEKYLL_ROOTLESS: 1
    JEKYLL_UID: 1000
    JEKYLL_GID: 1000
- name: deploy
  image: appleboy/drone-scp
  settings:
    host: 192.168.1.51
    username:
      from_secret: ssh_username
    password:
      from_secret: ssh_password
    port: 22
    target: ~/some/path/
    rm: true
    source: _site
trigger:
  event:
  - push
  - pull_request
  - rollback

When you manually execute a pipeline the event type is "custom", however, this event type is not included in your triggers section. You can include the event to the triggers section:

trigger:
  event:
  - push
  - pull_request
  - rollback
+ - custom

or you can take a slightly different approach and exclude specific events:

trigger:
  event:
+  exclude:
+  - tag
- - push
- - pull_request
- - rollback
1 Like

Right, I ended up reading the docs and finding my silly mistake. Thank you, this sheds some more light on it