Welcome to the Linux Foundation Forum!

Unable to add localhost to github webhook

Hi, i am currently on the chapter 6: DEVOPS AND SRE FUNDAMENTALS: IMPLEMENTING CONTINUOUS DELIVERY (LFS261)

Video: Integrating GitHub with Jenkins to Setup Webhook-Based Triggers

The instructor shows us how to add a github hook.
The problem is that the instructor does not inform us in the video how to create the ip address for your jenkins so i can add it to the github.

My jenkins runs on localhost

i have tried:
- using the println InetAddress.localHost but the address did not work. When i tried
curl the address it gives 173.1x.x.x:8080. it did not work
Is there any way where i can resolve this issue

Please help me

Comments

  • Posts: 1,265
    edited November 2021

    Hi @davidboadu ,

    The problem is that the instructor does not inform us in the video how to create the ip address for your jenkins so i can add it to the github.

    In the case of the video, the IP of the Jenkins server is a public IP, so you should be able to see it from your cloud or internet provider. If yours is a private IP behind a firewall/router, it won't work as expected, and you need to do some extra work, as described here:

    https://www.jenkins.io/blog/2019/01/07/webhook-firewalls/

    I hope that helps,
    Luis.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training