I have added credentials for Jenkins to be able to add a webhook. For that I did the following:
1. Generated personal access token on GitHub with repo and admin:repo_hook scopes.
2. Added Secret text credentials with corresponding token.
3. Added GitHub Server with credentials from the previous step in Manage Jenkins > Configure System.
But then when I create Pipeline job, I see in the system log:
GitHub webhooks activated for job p1 with [] (events: [PUSH])
With Freestyle project I get:
GitHub webhooks activated for job fsp1 with [GitHubRepositoryName[host=
github.com,username=user,repository=repo]] (events: [PUSH])
For Freestyle project I did the following:
1. On Source Code Management tab chose Git, specified repository URL and credentials from before.
2. Checked GitHub hook trigger for GITScm polling.
For Pipeline job:
1. Checked GitHub project and specified repository URL.
2. Checked GitHub hook trigger for GITScm polling.
What am I missing? Thanks in advance.