RTC/Git integration: who's done it/how well does it work?
![]()
Hi all. I've read the "Integrating other SCM Systems with Rational Team Concert 2.0" document from 2009, which gives a lot of detail but is a little lacking as to the higher-level pros and cons, and searched these forums looking for people who've actually implemented this integration but haven't found much.
Has anyone out there actually implemented the RTC/Git bridge described in the above document? How is it working for you? Do you have any advice? Are you willing to give a general overview of how your system works? With a DVCS there are lots of decisions to make (it seems to me); do you connect RTC with only the "master" git repository? All of them? Etc. Is there any existing community around this environment that I can contact? What features of RTC does one lose by choosing the Git bridge instead of the builtin SCM? The above doc just says "it is possible to provide a similar type of integration between RTC work items and other SCM systems by using comments and the "Related Artifacts" links provided by the Work Items component. The level of integration will not be as high as with RTC SCM but it is useful none the less"; I'm wondering exactly what "not as high" means: what features are preserved, and which are not. Finally in some of my readings I've seen discussion of a "connector", while the above doc describes a Git "bridge". Are "connector" and "bridge" different names for the same thing? If not what is the advantage of a connector over a bridge (or vice versa), and if a connector gives tighter integration then is there one available for Git and/or would it be difficult to create one? Thanks for any guidance/pointers/guidelines anyone can provide! Cheers! |
22 answers
![]() So in my pre-receive script I have this after all editing: #!/opt/ActivePython-3.3/bin/python3.3
remote="$1"
while read oldRev newRev refName; do
exit 0 and I try to execute this script manually it throws syntax error:invalid Syntax on below url.. Dont know why??but will try troubleshooting jazzRepoUrl=https://ptcpassbuild1:9443/jazz/
|
![]() My GIT commit is like this:
git commit -s -m "fix defect 419901" and then I push it and then I got to links in RTC but nothing comes up. Is this message correct? Comments according to http://www-01.ibm.com/support/knowledgecenter/api/content/SSYMRC_5.0.0/com.ibm.team.connector.cq.doc/topics/t_git_assoc_wi.html
|
![]() I have my scripts in below loactions: 1) For Git repo: /media/storage/gerrit2/review_site/git/testproject2.git/hooks {hookslib.pyc, post-receive.py, pre-receive.py, rtcprocess.pyc and commit-msg} 2) For Gerrit : /media/storage/gerrit2/review_site/hooks {ref-update.py and ref-updated.py} 3) For hooks path: /opt/ActivePython-3.3/share/python3.3/scripts/rtcgithooks {AssociateWorkItem.py, hookslib.pyc, post-receive.py, pre-receive.py, ref-update.py, ref-updated.py, rtcprocess.pyc and ValidatePush.py}
For this integration I have modified post-receive, pre-receive , ref-update and ref-updated scripts.
Please let me know if any script needs to be placed in any other folder/directory?
|
![]()
1) For Git repo: /media/storage/gerrit2/review_site/git/testproject2.git/hooks {hookslib.pyc, post-receive.py,
pre-receive.py, rtcprocess.pyc and commit-msg} only post-receive needs to be in the hooks folder. post-receive is the thing git calls. and ONLY that file on push. it must be executable too chmod +x post-receive the others are in the location where the ibm files are /opt/ActivePython-3.3/share/python3.3/scripts/rtcgithooks |