Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Bitbucket - OpenShift Integration #257

Open
co-de opened this issue Nov 11, 2017 · 2 comments
Open

Bitbucket - OpenShift Integration #257

co-de opened this issue Nov 11, 2017 · 2 comments

Comments

@co-de
Copy link

co-de commented Nov 11, 2017

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.

@tomasbjerre
Copy link
Owner

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.

tomasbjerre added a commit that referenced this issue Nov 18, 2017
Hopefully solves OpenShift integration problem.
tomasbjerre added a commit that referenced this issue Nov 18, 2017
Hopefully solves OpenShift integration problem.
@tomasbjerre
Copy link
Owner

3.17 now has a radio button for HTTP 1.1. Try that and see if it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants