Adding repositories to a server project
You can add repositories to a server project to access assets and resources available in
the respective repository.
Before you begin
- Added a project on HCL OneTest™ Server.
- Been granted permission to access the repository.
About this task
Procedure
- Log in to HCL OneTest™ Server and open the team space that contains your project.
- Open your project, and then click Manage.
- Click the Repositories tab.
-
Click Add Repository.
The Add Repository dialog box is displayed.
- Enter the URL of the Git repository that you want to add to your project in the Git Repository field.
-
Enter the required credentials based on any of the following authentication methods
configured in the repository.
To gain access to the repository, you must use any one of the authentication methods:
Authentication method Credentials required SSH - Deploy key
- Passphrase
HTTPS - User name
- Password
HTTP - User name
- Password
Notes:- You must have defined the authentication type and set the authentication credentials in the Git repository.
- If you use SSH to connect to your remote repository and HCL OneTest™ Server displays an Auth Fail exception while using the deliver changes option, you can resolve this exception error by regenerating your SSH keys by using the -m PEM option.
-
Click Add.
The Git repository is added to your project in the team space.Note: Depending on the size of the repository that you are cloning, it can take a few to several minutes to clone the repository.
- Optional: Repeat the steps to add another repository.
What to do next
- Update the authentication credentials if they are changed in the Git repository configuration.
- Delete a repository if it is no longer required.
- Refresh a repository to fetch and synchronize changes from the remote repository.
- Configure a webhook to notify the server when there is a push event in the remote repository.