Drone:0.9.0-alpha.1 - Repository Hooks - tick's not showing

Hi,

While testing drone:0.9.0-alpha.1 with Gitea Version: 1.4.2 the webhook seems to work fine and has a green tick,the repositories are synced to drone and all looks fine.

The problem I have found is that when I merge to master or merge a PR in Gitea, drone seems to pick up the POST request but a build is not executed. I checked the build “Settings” in drone I found that

None of the repository hooks were enabled.

When I tried to enable I get a successful message but no tick

Repository Hooks      push
                      pull request
                      tag
                      deployment

Thanks in advance

These fields in the user interface are deprecated (so their blank value is expected) and they will be removed in the coming weeks before we cut a beta release. Drone 0.9 executes builds for all event types unless they are explicitly disabled in the yaml and demonstrated here: https://readme.drone.io/config/triggers/#by-event

Have you looked at your server logs for more details? Drone has extensive logging in place that can help you better understand what is happening when a hook is received. I would need to see debug server logs to advise further.

code {
background: hsl(220, 80%, 90%);
}

pre {
white-space: pre-wrap;
background: hsl(30,80%,90%);
}

Thanks for responding so quickly to my issue.

I’m afraid I’m still stuck trying to understand why the drone build will not trigger when I push to my gitea repository.

As requested here is my .drone.yml and my drone log.

Can you help?

Thanks in advance

Drone pipeline

pipeline:
- build:
image: golang
commands:
- go build
- go test
- go test
trigger:
event:
 - push
 - pull_request
 - tag
 - promote
 - rollback

Drone Log

     license: "",
     cron:,
       disabled: false,
       interval: 30m0s,
     cloning:,
       alwaysauth: false,
       username: "",
       password: "",,
     :,
       driver: sqlite3,
       datasource: /data/database.sqlite,
     docker:,
       config: "",
     logging:,
       debug: true,
       color: false,
       pretty: false,
     prometheus:,
       token: "",
     registries:,
       endpoint: "",
       password: "",
     repository:,
       filter: [],
     runner:,
       machine: 26fb983766c3,
       capacity: 2,
       platform: linux/amd64,
       label: "",
       volumes: [],
       networks: [],
       devices: [],
       privileged: [],
       environ: {},,
     :,
         memswaplimit: 0,
         memlimit: 0,
     {"level":"info","kind":"trial","expires":"0001-01-01T00:00:00Z","repo-limit":5,"user-limit":5,"time":"2018-09-06T22:38:32Z","message":"license loaded"},
         shmsize: 0,
         cpuquota: 0,
         cpushares: 0,
         cpuset: "",
     rpc:,
       server: "",
       secret: "",
       debug: false,
     secrets:,
       endpoint: "",
       password: "",
     server:,
       addr: http://localhost,
       host: localhost,
       port: :80,
       proto: http,
       acme: false,
       cert: "",,
     ",
     session:,
       timeout: 720h0m0s,
       secret: KSRKNUyKzj8roEvEEu3ULHEGEfOtKqtI,
     users:,,
     :,
         username: "",
         machine: false,
         admin: false,
         token: "",
       filter: [],
     webhook:,
       endpoint: [],
       secret: "",
       skipverify: false,
     bitbucket:,
       clientid: "",
       clientsecret: "",
       skipverify: false,
     gitea:,
       server: http://192.168.1.11:3000,
       skipverify: false,
     github:,
       server: https://github.com,
       clientid: "",
       clientsecret: "",
       skipverify: false,
       scope:,
       - repo,
       - repo:status,
       - user:email,
       - read:org,
     gitlab:,
       server: https://gitlab.com,
       clientid: "",
       clientsecret: "",
       skipverify: false,
     gogs:,
       server: "",
       skipverify: false,
     stash:,
       server: "",
       consumerkey: "",
       consumersecret: "",
       privatekey: "",
       skipverify: false,
     ,
     {"level":"info","threads":2,"time":"2018-09-06T22:38:32Z","message":"starting the local build runner"},
     {"level":"info","interval":"30m0s","time":"2018-09-06T22:38:32Z","message":"starting the cron scheduler"},
     {"level":"debug","queue":"","platform":"linux/amd64","time":"2018-09-06T22:38:32Z","message":"polling queue"},
     {"level":"debug","queue":"","platform":"linux/amd64","time":"2018-09-06T22:38:32Z","message":"polling queue"},
     {"level":"debug","platform":"linux/amd64","time":"2018-09-06T22:38:32Z","message":"request stage"},
     {"level":"debug","platform":"linux/amd64","time":"2018-09-06T22:38:32Z","message":"request stage"},
     {"level":"info","proto":"http","host":"localhost","port":":80","url":"http://localhost","acme":false,"time":"2018-09-06T22:38:32Z","message":"starting the http server"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qoq2o78pghik0ldi0","time":"2018-09-06T22:38:32Z","message":"event stream opened"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qoq2o78pghik0ldig","time":"2018-09-06T22:38:32Z","message":"event stream opened"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qoq2o78pghik0ldi0","time":"2018-09-06T22:39:05Z","message":"event stream cancelled"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qoq2o78pghik0ldi0","time":"2018-09-06T22:39:05Z","message":"event stream closed"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qoq2o78pghik0ldi0","time":"2018-09-06T22:39:05Z","message":"guest access"},
     {"level":"debug","ip":"172.17.0.1","path":"/login","method":"POST","request_id":"be8qp4qo78pghik0ldmg","login":"taitd","time":"2018-09-06T22:39:16Z","message":"attempting authentication"},
     {"level":"debug","ip":"172.17.0.1","path":"/login","method":"POST","request_id":"be8qp4qo78pghik0ldmg","login":"taitd","time":"2018-09-06T22:39:16Z","message":"authentication successful"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qp52o78pghik0ldp0","login":"taitd","sys_admin":false,"time":"2018-09-06T22:39:16Z","message":"event stream opened"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"GET","request_id":"be8qp52o78pghik0ldpg","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T22:39:16Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8qp52o78pghik0ldq0","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T22:39:16Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8qp92o78pghik0ldrg","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T22:39:32Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8qpmao78pghik0ldsg","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T22:40:25Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8qqtao78pghik0ldug","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T22:43:01Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"DELETE","request_id":"be8rdnio78pghik0le00","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T23:23:10Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"DELETE","request_id":"be8rdnio78pghik0le00","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","time":"2018-09-06T23:23:10Z","message":"sync repository permissions"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"DELETE","request_id":"be8rdnio78pghik0le00","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","time":"2018-09-06T23:23:10Z","message":"repository permissions synchrnoized"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"DELETE","request_id":"be8rdnio78pghik0le00","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","read":true,"write":true,"admin":true,"time":"2018-09-06T23:23:10Z","message":"access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"POST","request_id":"be8rdnqo78pghik0le0g","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T23:23:11Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example","method":"POST","request_id":"be8rdnqo78pghik0le0g","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","read":true,"write":true,"admin":true,"time":"2018-09-06T23:23:11Z","message":"access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qp52o78pghik0ldp0","login":"taitd","sys_admin":false,"time":"2018-09-06T23:28:07Z","message":"event stream cancelled"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8qp52o78pghik0ldp0","login":"taitd","sys_admin":false,"time":"2018-09-06T23:28:07Z","message":"event stream closed"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/stream","method":"GET","request_id":"be8rg1qo78pghik0le40","login":"taitd","sys_admin":false,"time":"2018-09-06T23:28:07Z","message":"event stream opened"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8rg2ao78pghik0le50","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T23:28:09Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8rg5qo78pghik0le60","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-06T23:28:23Z","message":"read access granted"},
     {"level":"debug","time":"2018-09-06T23:30:15Z","message":"process pending cron jobs"},
     {"level":"debug","time":"2018-09-06T23:30:15Z","message":"done processing pending cron jobs"},
     {"level":"debug","time":"2018-09-07T00:00:15Z","message":"process pending cron jobs"},
     {"level":"debug","time":"2018-09-07T00:00:15Z","message":"done processing pending cron jobs"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8s0b2o78pghik0le80","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-07T00:02:52Z","message":"read access granted"},
     {"level":"debug","ip":"172.17.0.1","path":"/api/repos/taitd/nanite.drone-cicd-example/builds?page=1","method":"GET","request_id":"be8s0h2o78pghik0le9g","login":"taitd","sys_admin":false,"repository":"taitd/nanite.drone-cicd-example","visibility":"public","time":"2018-09-07T00:03:16Z","message":"read access granted"},

The most common reason is networking, see [solved] Gogs hook doesn't work?