IP address of localhost:8080 -in webhooks of github +jenkins

后端 未结 3 972
一生所求
一生所求 2021-02-04 20:22

I am trying to configure webhooks in github so that it will deploy every time I do a new push, I have added web hooks in github and given the address of jenkins which is h

3条回答
  •  太阳男子
    2021-02-04 21:00

    You need a public address for Github to point to when detected a push request. localhost is on your localmachine.

    The way i solved it is to use a proxy agent Ngrok. Enter command >ngrok http 8080, it will generate http://{hexa-numbers}.ngrok.io copy the generated public address and put in your github repository webhook http://{hexa-numbers}.ngrok.io/github-webhook/.

    At this point when you save it, it will send a post request to ngrok server, got redirected to localhost and you will see a green tick.

提交回复
热议问题