first step:
First, we search for Generic Webhook Trigger in the plugin management of jenkin, and then download and restart jenkins.
The second step:
After restarting jenkin, we can see that the following picture will appear
You can define a lot of your own rules here, and study the specific usage.
We use a simple token to test.
Here we put our token in the token, here I will write a random, called gitee, and then save it.
third step:
Go to the code cloud to configure webhook, as shown below
Then click Test and found that the project was built normally.