It's all about the answers!

Ask a question

RTC+Git connector setup


Yael K (471130) | asked Jul 14 '16, 9:55 a.m.
Hi all,

I followed this link to setup the RTC+Git connection, 
but didn't understand how to set up Git over Apache Smart HTTP Server.

Can anybody who succeeded with this architecture explain it's done?

2 answers



permanent link
Shubjit Naik (1.5k1613) | answered Jul 14 '16, 10:16 a.m.
edited Jul 14 '16, 10:17 a.m.
 Hi

Here are the links on the Integration using Apache:
https://jazz.net/library/article/1479
https://jazz.net/library/article/1485

We have introduced the Integration using Nodejs in 6.0, which is simpler to setup, you can have a look at this at our infocenter




Comments
Ralph Schoon commented Jul 14 '16, 10:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Hi Shubjit, several posts indicate that users have problems with getting the NodJS version to work:

https://jazz.net/forum/questions/218044/error-communicating-with-git-server-when-register-repo-in-rtc
https://jazz.net/forum/questions/220166/rtc-git-integration-error-22-on-push

There seems not to be a satisfying answer yet.


Shubjit Naik commented Jul 14 '16, 10:29 a.m.

 Hi Ralph


Thanks for pointing out those links, I recently updating my notifications with git tags.

The integration does not work with the default settings if we try the Basic authentication in config.json.

We have modify the web.xml files in JTS/RTC and change the authentication mode from FORM to BASIC and it works well.

I will add my comments on the other posts as well.


permanent link
Yael K (471130) | answered Jul 14 '16, 10:33 a.m.
 Hi Shubjit,

Step 2 in the infocenter suggests downloading Rational Team Concert Node.js server version 6.0 or later from the download page.

What installation exactly do I need to download from this page?

Comments
1
Shubjit Naik commented Jul 14 '16, 10:44 a.m.

Hi Yael

From our jazz.net page you need to download the rtc_git_server_toolkit . The link is from our latest version, you can download the same from the version of RTC you are setting up with.


You can download Nodejs from this Link

Here are some additional articles that would help setup Nodejs server and the Integration. 

https://jazz.net/wiki/bin/view/Main/RTCGitNodeJSServer
https://jazz.net/wiki/bin/view/Main/RTCGitIntegrationSetupUsingNode

Please note about BASIC authentication and error 22 in this Forum Post


Yael K commented Sep 19 '16, 5:03 a.m.

 Hi Shubjit,


I used the links you sent me to setup this integration, using LDAP as an authProfile.
However, I have an unsolved issue - 

Assuming my git repository is named "git-repo", the repository data on the git server is located under directory titled "123", which is "git-repo"'s ID number (we are using bitBucket by Atlassian, and this is a standard configuration). When I try cloning using the git repository name [git clone http://git-srv:8888/git/git-repo.git] I get the error: 

fatal: http://git-srv:8888/git/git-repo.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

however, when I run the same command using the repository's ID, the clone is successful. I'm using git v1.8.4, RTC 6.0.2, nodejs 0.10.9.
Do you have any suggestions?

Thanks,
Yael


Shubjit Naik commented Sep 19 '16, 6:23 a.m.

Hi Yael


The git-repo variable per the article seems to be the full path to the parent folder which is holding the git repositories. So in this case to clone, looks like, you would need to mention the folder name in the URL.
Since 123 in your example is the directory name, it seems to work only with that.


Yael K commented Sep 19 '16, 9:18 a.m.

Hi Shubjit, 

Thanks for the quick reply!

Using the repository ID number to clone the repository isn't a good solution,
because as you clone the repository "123", the local root folder created in the client side is also named "123"..
This is the standard BitBucket server architecture, so there must be a better solution!

Atlassian documentation about the ID representation in the server:
https://confluence.atlassian.com/stashkb/identifying-a-repository-on-the-stash-server-292651201.html


Do you have any suggestion?
Thanks,
Yael

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.