How to make Jenkins automatically add webhook for Pipeline job?

26 views
Skip to first unread message

Yuri Kanivetsky

unread,
Jun 24, 2017, 2:51:49 AM6/24/17
to Jenkins Users
Hi,

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])
PING webhook received from repo <https://github.com/user/repo>!

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.

Reply all
Reply to author
Forward
0 new messages