configure.sh git
Use the git subcommand with the configure.sh script to add IBM® Engineering Workflow Management (EWM) Git configuration variables rtc.repourl and rtc.repokey in the config file of the Git repository.
About this subcommand
Execute the git subcommand for each Git repository that you integrate with EWM because each Git repository must be registered separately in the EWM server.Prerequisites
The git subcommand must be executed on the system where the bare Git repository resides. This is usually the system where the Git hosting server runs. Command arguments that accept a file or folder path should be valid paths inside this system.
The user executing the subcommand should have permissions to write to the config file of the bare Git repository.
Usage
cd EWM Git Integration Toolkit/tools/install
./configure.sh git -g git-repo-path -r rtc-repository-url -k rtc-repo-key
Options
Option | Description | Required |
---|---|---|
-g/--git-repo git-repo-path | The absolute path to the bare Git repository. | Yes |
-k/--repo-key rtc-repo-key | Key of the Git repository after it is registered in the EWM server. | Yes |
-r/--repo-url rtc-repository-url | URL of the EWM server in which this Git repository is registered. | Yes |
-h/--help | Displays this help message. | No |
Examples
# Display usage/help
cd EWM Git Integration Toolkit/tools/install
./configure.sh git --help
# If the Git repositories managed by the hosting server are located under /opt/git-data/repos/
# Configure a Git repository
cd EWM Git Integration Toolkit/tools/install
./configure.sh git -g /opt/git-data/repos/myrepo.git -r https://localhost:9443/ccm -k cd5d0cde8e8e11e9bc42526af7764f64
# Configure a Git repository (long options)
cd EWM Git Integration Toolkit/tools/install
./configure.sh git --git-repo /opt/git-data/repos/myrepo.git --repo-url https://localhost:9443/ccm --repo-key cd5d0cde8e8e11e9bc42526af7764f64