RTC Gitlab integration - only by node.js hooks or also by webhooks
Hi all,
|
One answer
Hi,
The integration using Gitlab webhooks is not supported. So you need to use the hook scripts.
There is a open work item for webhook support:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/411540 Comments
Christian Naujoks
commented May 03 '17, 3:30 a.m.
Hi, thanx for your fast answer.
Hi,
I am not sure which version you are using. In the toolkit you will have a folder 'gitlab' under 'server\hooks\examples'. The pre-receive and post-receive files under this directory needs to be configured and copied into custom_hooks directory (refer this link https://docs.gitlab.com/ee/administration/custom_hooks.html).
Hi Karthik,
1. Create a custom_hooks directory under your project's repository directory. As mentioned in the following link https://docs.gitlab.com/ee/administration/custom_hooks.html, the path is usually /home/git/repositories/<group>/<project>.git
2.Copy the pre-receive and post-receive hook files from toolkit (<toolkit>\server\hooks\examples\gitlab) to custom_hooks directory of your Gitlab repository and provide executable permissions.
3. Configure hooks by providing GitLab server URL, GL_TOKEN, RTC_GIT_SERVER_TOOLKIT_PATH details in the pre-receive and post-receive hook files.
4. Restart the Gitlab server.
Christian Naujoks
commented May 09 '17, 7:18 a.m.
Related to point 3:
Yes, you need to point it to the location where you extracted the zip.
The hooks.py directory is not required if you are using nodejs based hooks. But, I would suggest not deleting any directory in toolkit.
In addition to the above steps, you need to configure the git config rtc.repokey and rtc.repurl by running the following commands from your projects remote directory
git config rtc.repourl <your RTC server url>
git config rtc.repokey <your repositories repo key>
The repokey is generated after registering your Gitlab repository with RTC.
showing 5 of 6
show 1 more comments
|
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.