# setup gitea webhook - Setup gitea webhook to trigger jenkins build - [Tutorial](https://wiki.gcube-system.org/gcube/Gitea/Jenkins:_Setting_up_Webhooks) - Update `docker-compose.yml` host name (Gitea & Jenkins) ```yml ... services: server: image: gitea ... extra_hosts: - "dev.mitech.com.sg:172.16.16.2" ``` - Update Gitea server app.ini. [Reference](https://nixing.mx/posts/configure-gitea-webhooks.html) ```ini [webhook] ALLOWED_HOST_LIST = * ``` ## Steps 1. Add webhook trigger to Gitea Server - ![](/images/01-webhook.PNG) - ![](/images/02-webhook.PNG) 2. Setup webhook endpoint on Jenkins Server - ![](/images/03-webhook.PNG) - ![](/images/04-webhook.PNG) 3. Config Jenkins project setting - ![](/images/05-webhook.PNG)