pull-request-notifier-for-bitbucket
pull-request-notifier-for-bitbucket copied to clipboard
Bitbucket - OpenShift Integration
Let me start by saying that this is one of the most useful plugins I have seen up to now. And I appreciate the fact that it is available for free...
Now, what I am trying to achieve... I am trying to integrate Bitbucket with Red Hat OpenShift. Whenever a new pull-request is merged, a POST should be done on a URL provided by OpenShift. I created a new "notification" to be triggered on "MERGED" trigger. I also created a button and bound it to this notification to trigger it easily.
I copied the URL provided by OpenShift into the "URL" field of this notification's configuration and set the method as POST.
After creating a pull-request, I click my custom button to trigger this event, but Bitbucket gives me a 505 error. "Check the Bitbucket server log for more details" it says. I remote desktop to Bitbucket server, go to "D:\Atlassian\Bitbucket\4.14.3\logs" where the logs are located but no logs have been created. How can I solve this? Am I doing something wrong?
Note: When I do "curl -X POST {URL}" on command line (on Bitbucket server machine), trigger succeeds and a new build is started on OpenShift.
Sounds correct.
I'm guessing the problem might be that the plugin uses HTTP 1.0 and OpenShift accepts only HTTP 1.1. But that is just a guess.
3.17 now has a radio button for HTTP 1.1. Try that and see if it works.