...
In your Git Account, select the repository you want to integrate with Jenkins and go to Settings.
Select the Webhooks option from the left pane.
In the URL, enter the URL and append “/project/project name” to this URL, as shown in the figure below, and enter the secret token. To generate the secret token, check the section Creating secret token in Jenkins). For example, http://localhost:8080/project/Git
Select Push events in the trigger and then click Add webhook.