You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# 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
|
|
|
|
|
- 
|
|
|
|
|
- 
|
|
|
|
|
|
|
|
|
|
2. Setup webhook endpoint on Jenkins Server
|
|
|
|
|
- 
|
|
|
|
|
- 
|
|
|
|
|
|
|
|
|
|
3. Config Jenkins project setting
|
|
|
|
|
- 
|