Hi All,
I am doing integration Jenkins with gitlab, My main intention is trigger a Jenkins job once i push the code changes into the Gitlab and status received by gitlab accordingly.
Almost all the configuration part is done, But i stuck with configure webhook in gitlab.
Attached image below
when i paste the URL in webhooks it saying “Url is blocked: Requests to localhost are not allowed”
i tried with local ip address also, it seems not working.
Please help me to fix this.
… all Webhook requests to the current GitLab instance server address and/or in a private network will be forbidden by default.
This behavior can be overridden by enabling the option “Allow requests to the local network from web hooks and services” in the “Outbound requests” section inside the Admin Area > Settings ( /admin/application_settings/network )
This screenshot shows you’re using GitLab.com.
You can’t install webhooks on the GitLab.com server, you must install them on another server.
So your Webhooks URL can’t be localhost.