at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: net.sf.json.JSONException: JSONObject["user"] not found. at net.sf.json.JSONObject.getString(JSONObject.java:2040) at com.cloudbees.jenkins.plugins.BitbucketPayloadProcessor.processPostServicePayload(BitbucketPayloadProcessor.java:128) at com.cloudbees.jenkins.plugins.BitbucketPayloadProcessor.processPayload(BitbucketPayloadProcessor.java:37) at com.cloudbees.jenkins.plugins.BitbucketHookReceiver.doIndex(BitbucketHookReceiver.java:54) at sun.reflect.GeneratedMethodAccessor1036.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:335) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:175) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:108) at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:26) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 58 moreUSING FOLLOWING VERSIONBITBUCKET:5.6.2BITBUCKET PLUGIN IN JENKINS:1.1.8
I too get the same error :
net.sf.json.JSONException: JSONObject["user"] not found.
Looks like Webhook functionality in Bitbucket was released a bit too early and is quite buggy. It is quite possible that the Jenkin plugin is incompatible, seeing the parsing issue at Jenkin side.
Just noticed, the POST packet of Bitbucket is like:
{"test": true}
so not really a Jenkin side fault. Empty packet is being sent.
It looks like you're new here. Sign in or register to get started.