S
S
Slava Kryvel2016-09-08 10:37:05
linux
Slava Kryvel, 2016-09-08 10:37:05

Is it possible to integrate Jetbrains Hub and TeamCity?

Good afternoon
There was a need to use tools for continuous integration. After comparing the available options, I settled on Jetbrains products. I also considered the option of solutions from Atlassian, but there is no completely free option. And this is quite important at the initial stage, because. the project is quite small.
It was installed:
Hub
TeamCity
Upsource
YouTrack Debian 8
system Oracle Java 8u101 Nginx proxy Actually, the problem is this: All products have successfully integrated with each other, except for TeamCity That is, when creating a project in the Hub, everything is connected to it (as an external resource), except for TeamCity
The plugin is installed in TeamCity and internal.properties is created with settings, everything is as in the documentation. TC itself sees the Hub and successfully takes users from it.
I ask for your help in solving the problem! Maybe there is someone who has already succeeded or is the Toaster read by comrades from Jetbrains?)
I can post the configs if necessary. Tell me which one specifically.
I have a suspicion that the problem is all the same with the proxy ..
For example, when trying to add a TC resource to a project in the Hub, the following error is written to the browser console

XMLHttpRequest cannot load http://tc.host/app/ring/canCreateProject. 
Response to preflight request doesn't pass access control check:
 No 'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'http://hub.host' is therefore not allowed access. 
The response had HTTP status code 404.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
theg4sh, 2016-09-15
@kryvel

Slava Kryvel , the problem is in the cross-domain request.
solution: add an HTTP header
in the response from the tc.host
server You may need to add a second header if there is ajax authorization:
Cross-domain requests are well discussed here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question