Integrating RTC and Github
2 answers
I see that
Defining Git-related permissions and preconditions
https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.connector.cq.doc%2Ftopics%2Ft_git_permissions.html
Registering Git repositories
https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.connector.cq.doc%2Ftopics%2Fc_integ_git.html
Note:
There are two options for authorizing GitHub requests:
A team that pushes commits is authorized for Git operations. For more information, see Authorizing Git requests.
For GitHub Enterprise, a secret key is specified, either during Rational Team Concert™ Git registration or in the GitHub
Procedure
Regard,
Arun.
Comments
Thanks for sending those links Arun - they were very helpful however after following the setup I have not been able to link pushes on Git to RTC. I have outlined what I have done below:
(1) Registered a Git repository specifying:
(a) the url to the git repos
(b) selecting a controlling project area to be the parent project are for the project I owrk on
(c) selecting a 'Secret Key Auth' - copied the key generated by RTC and linked to the key attribute under the 'Secret Key auth' text area - is this the correct key to use for secret key?
(d) In settings I have not set Commit URI Format or Namespace prefix for User Branches - I did enter my credentials for Git Server Auth though. I had this authentication specified before I started using the secret key approach.
(2) Added a Webhook in Git specifying:
(a) payload URL as https://ccm/service/com.ibm.team.git.common.internal.IGitHubInvokeService?repoKey=<my secret key from above>. this URL differs to the one specified at https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.connector.cq.doc%2Ftopics%2Ft_git_permissions.html - Git was complaining about the 'https://:/' at the start of the payload on this page.
(b) content type = application/json
(c) Added my secret key
(d) selected just push event
(e) selected 'Active'
I then added a file to my git repos, commited the file using the command git commit -m "Complete task 89802", where 89802 is the task number in RTC, and then did a git push.
When I open the task there is no change set linked to the task.
Any help would be greatly appreciated as I need to get this integration in place by the end of this week.
Thanks again.
Elaine.
Please check below link.
https://jazz.net/library/article/1485
Also Arun - we are using GitHub enterprise -so from docs I am not sure if we need to install the rtc hooks on git server - expect we do but want to confirm this.
Many of our team will not use Eclipse for commits - we expect team members will use a variety of tools and for now all are using git cli. Therefore can I skip the section 'Execution of CLM-Git Integration use case'? I expect I need [and have not set up as yet] the hooks on the git server - explained in section 'How to configure Hooks on Git server'. this section does not provide the links to the hooks on jazz.net - could you send the link to me?
Thanks again.
Best Regards,
Elaine.