Deploying pre-receive hooks in the Git repository on a Apache HTTP Server

You can configure pre-receive hooks to enable process enforcement between Git and Rational Team Concert™.

About this task

The following steps assume that the Git repositories are present in /var/gitrepos on a Linux system. Repeat this task for each Git repository.

Procedure

  1. Copy the pre-receive hook file from rtc-git-integration-toolkit-install-folder/server/hooks/examples/pre-receive to /var/gitrepos/repository-name/hooks.
  2. Assign executable permission to the file: chmod +x pre-receive.
  3. Open the pre-receive file in a text editor and set the following environment variables:
    Environment variable Description
    NODE_EXECUTABLE Absolute path to the node executable. Required if node executable cannot be found in the system path.
    RTC_GIT_SERVER_TOOLKIT_PATH Absolute path to the folder where the RTC Git Integration Toolkit has been installed.
    RTC_GIT_SERVER_TRACE_LEVEL Logging level for the hooks. Set this value to 4 while you set up the integration. Revert it after you validate the integration.

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki