How do I get Jenkins to automatically add a pipeline website?

I added credentials for Jenkins to be able to add a webhook. To do this, I did the following:

  • Generated GitHub access token with scopes repo

    and admin:repo_hook

    .
  • Added credentials Secret text

    with the corresponding token.
  • Added GitHub server with credentials from the previous step in Manage Jenkins > Configure System

    .

But then when I create a Pipeline job I see in the syslog:

GitHub webhooks activated for job p1 with [] (events: [PUSH])

      

With the 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 the Freestyle project, I did the following:

  • On the Source Control tab, Git is selected, repository url and credentials (username with password) specified.
  • Checked trigger to launch GitHub for polling GITScm.

To define a pipeline:

  • Checked out GitHub project and specified repository url.
  • ๏ฟผChecked GitHub connect trigger for GITScm polling.

What am I missing?

+3


source to share


1 answer


I have the same problem. I don't know why, but it got fine after starting work from blueocean.



0


source







All Articles