-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins v2.2 on ArchLinux
I've setup my environment as described in this video: https://www.youtube.com/watch?v=uu5XcU4EPzQ
However, when build starts and finishes, I don't see the status on BitBucket commits. In Jenkins log I can see following messages:
May 13 10:57:18 rambo jenkins[743]: INFO: Bitbucket notify on start
May 13 10:57:19 rambo jenkins[743]: May 13, 2016 10:57:19 AM org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier notifyBuildStatus
May 13 10:57:19 rambo jenkins[743]: INFO: This response was received:{"error": {"fields":
, "message": "Bad request"}}
May 13 10:57:19 rambo jenkins[743]: May 13, 2016 10:57:19 AM org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier prebuild
May 13 10:57:19 rambo jenkins[743]: INFO: Bitbucket notify on start succeeded
Any idea what has been configured wrong?
Note: our Jenkins server is inside our local network and generally it is not available from public web. The exception is hole opened exclusively for BitBucket's IP ranges so that push notifications can be sent to Jenkins from BitBucket's webhooks.
Hi Antonio!
I can confirm that calling BitBucket with curl as you explained works correctly (I've tried issuing the request from both my laptop and server where Jenkins is installed).
When I put some random string which is not in URL form in field "url", then I get the same error as observed in jenkins log. Is there a way for me to enable logging which will show me what is the value plugin puts in "url" field before issuing a request?
Btw, one side question: how does plugin perform when I have option "merge before build" enabled in my Git plugin? I've tried issuing a curl request with merge commit created before build and Bitbucket responded with "Changeset not found.". Does in this case plugin send the commit ID of the original commit (before making a merge)?