<div dir="ltr">Hi Chris,<div><br></div><div>I am not sure there are many bitbucket users right there. There is a possibility of a bug, or a change of api by bitbucket.</div><div>Actually buildbot is expecting code 201 from bitbucket:</div><div><a href="https://github.com/buildbot/buildbot/blob/master/master/buildbot/reporters/bitbucket.py#L96">https://github.com/buildbot/buildbot/blob/master/master/buildbot/reporters/bitbucket.py#L96</a><br></div><div><br></div><div>You may want to try to change this line to</div><div><br></div><div>if response.code not in (200, 201):<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 16 févr. 2017 à 17:16, Chris Spencer <<a href="mailto:chrisspen@gmail.com">chrisspen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">I've tried enabling the BitbucketStatusPush with:<br class="gmail_msg"><br class="gmail_msg">    from buildbot.reporters.bitbucket import BitbucketStatusPush<br class="gmail_msg">    bs = BitbucketStatusPush(BITBUCKET_OATH_KEY, BITBUCKET_OATH_SECRET)<br class="gmail_msg">    c['services'].append(bs)<br class="gmail_msg"><br class="gmail_msg"></div>and even though I enabled an Oauth consumer in my Bitbucket account, as explained in the docs, nothing shows up in Bitbucket.<br class="gmail_msg"><br class="gmail_msg"></div>Twistd.log shows the confusing error:<br class="gmail_msg"><br class="gmail_msg">    2017-02-16 16:03:02+0000 [-] 200: unable to upload Bitbucket status {"key": "myproject_runtests", "name": "myproject_runtests", "repository": {"links": {"self": {"href": "<a href="https://api.bitbucket.org/2.0/repositories/myproject/myproject" class="gmail_msg" target="_blank">https://api.bitbucket.org/2.0/repositories/myproject/myproject</a>"}, "html": {"href": "<a href="https://bitbucket.org/myproject/myproject" class="gmail_msg" target="_blank">https://bitbucket.org/myproject/myproject</a>"}, "avatar": {"href": "<a href="https://bitbucket.org/myproject/myproject/avatar/32/" class="gmail_msg" target="_blank">https://bitbucket.org/myproject/myproject/avatar/32/</a>"}}, "type": "repository", "name": "myproject", "full_name": "myproject/myproject", "uuid": "{1e98c979-a6d6-48d5-9b59-8b6ffc130a60}"}, "url": "<a href="http://buildbot.myproject.com/#builders/1/builds/7" class="gmail_msg" target="_blank">http://buildbot.myproject.com/#builders/1/builds/7</a>", "links": {"commit": {"href": "<a href="https://api.bitbucket.org/2.0/repositories/myproject/myproject/commit/6d0012a30f6a5d4b3f1b4a64853cd4181cceee88" class="gmail_msg" target="_blank">https://api.bitbucket.org/2.0/repositories/myproject/myproject/commit/6d0012a30f6a5d4b3f1b4a64853cd4181cceee88</a>"}, "self": {"href": "<a href="https://api.bitbucket.org/2.0/repositories/myproject/myproject/commit/7d0139a20f5a5d4b3f1b4c64853cd4181cceee88/statuses/build/myproject_runtests" class="gmail_msg" target="_blank">https://api.bitbucket.org/2.0/repositories/myproject/myproject/commit/7d0139a20f5a5d4b3f1b4c64853cd4181cceee88/statuses/build/myproject_runtests</a>"}}, "refname": null, "state": "SUCCESSFUL", "created_on": "2017-02-16T16:02:02.432495+00:00", "updated_on": "2017-02-16T16:03:02.232617+00:00", "type": "build", "description": ""}<br class="gmail_msg"><br class="gmail_msg"></div>What's going on here? Why is it "unable to upload status", but the JSON doesn't mention any error? How do I get an explanation for the upload error? Is there anyway to test this from the command line to confirm the settings are correct?<br class="gmail_msg"></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Feb 15, 2017 at 5:51 PM, Chris Spencer <span dir="ltr" class="gmail_msg"><<a href="mailto:chrisspen@gmail.com" class="gmail_msg" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">I had written a custom status reporter for publishing the build results to any open pull requests linked to the build's branch.<br class="gmail_msg"><br class="gmail_msg"></div>After I upgraded to 0.9, this naturally stopped working, but I noticed that 0.9 now has a BitbucketStatusPush class (<a href="http://docs.buildbot.net/latest/manual/cfg-reporters.html#bitbucketstatuspush" class="gmail_msg" target="_blank">http://docs.buildbot.net/latest/manual/cfg-reporters.html#bitbucketstatuspush</a>).<br class="gmail_msg"><br class="gmail_msg"></div>However, it's unclear what this does. It says status is "published to a specific commit SHA". What does that mean in terms of the Bitbucket UI? Does that status show up in any outstanding pull requests, or does it show somewhere else?<br class="gmail_msg"></div>
</blockquote></div><br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
users mailing list<br class="gmail_msg">
<a href="mailto:users@buildbot.net" class="gmail_msg" target="_blank">users@buildbot.net</a><br class="gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>