Original link: https://www.iyouhun.com/post-235.html
Coding project Webhook settings
1. Go to Project Settings => Developer Options => Service Hook => New Service Hook
2. Select different event trigger types and filter conditions according to your project
3. Configure the sending method
Action : default
Service URL : is your generic-webhook-trigger
calling address, http://JENKINS_URL/generic-webhook-trigger/invoke
For example: http://108.108.108.108:8080/generic-webhook-trigger/invoke
Build Token : You can customize it, the following project release settings will be used
Others that do not have to be filled in according to your actual needs
Project publish settings
1. Click on the build environment of the Jenkins project
2. Select Generic Webhook Trigger
3. Enter the corresponding token to save
- Push it, the successful automatic build
This article is reprinted from: https://www.iyouhun.com/post-235.html
This site is for inclusion only, and the copyright belongs to the original author.