Jenkins+Github: We couldn’t deliver this payload: Couldn't connect to server

前端 未结 2 1176
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 09:27

I am trying to configure the web hook on GitHub so that it can send the POST to http://127.0.0.1:8080/github-webhook/

My Jenkins is running on http://127.0.0.1:8080

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-07 09:54

    GitHub would not know how to contact "localhost" or 127.0.0.1: what GitHub would consider "local" is not your local machine.

    You need to specify an IP address GitHub can contact over the internet. Not just "localhost".

    That means your PC must expose to the internet the port 8080.
    That can involve opening said port on your router for instance.
    Or, at work, requesting from your IT department a firewall rule to allow traffic on that port.

提交回复
热议问题