sudhir
sudhir

Reputation: 219

Bit-bucket Jenkins webhooks invalid URL

I recently installed bit bucket plug-in(Version-1.1.8) in jenkins(Jenkins ver. 2.113). I configured a Jenkins webhook for a project on Bitbucket server by providing url http://ipaddress:port/bitbucket-hook/. When I tried to save I keep getting error invalid url. I am not sure why bit bucket is not accepting ip address. I assume it may be due to ipaddress not being exposed publicly.

Please help.

FYI:IP address is static and DNS is not configured for the server.

Upvotes: 3

Views: 4013

Answers (1)

Jim Redmond
Jim Redmond

Reputation: 5631

Bitbucket Cloud (https://bitbucket.org/) is only accessible over public IPs, so it can only talk to other public IPs. If you're giving a private IP then Bitbucket won't have any way to reach it. (This is the intended nature of private IP spaces.)

You'll need to have a publicly-accessible IP, at the very least, so that Jenkins can receive incoming webhooks.

Upvotes: 5

Related Questions