Working with Git repositories

You can add another repository in addition to the existing repositories in your project or edit the repository settings, by updating the credentials, or by removing references to the repository.

Adding another repository

When you created a project, you probably added a repository. If you did not add a repository when you created a project, you can add one or more repositories any time after you create a project.

Updating the authentication credentials of the repository

If the authentication credentials of the Git repository which was added to your project are changed, then you must update the new credentials of the repository in HCL OneTest Server.

Before you begin

You must be a project owner or a tester with access to edit repositories.

About this task

In HCL OneTest Server, the repository is refreshed at regular intervals to pull the latest changes committed to the Git repository. After you update your authentication credentials of the repository, the repository is refreshed to ensure that you have continued access to the Git repository and to the latest assets in the repository.

Procedure

  1. Open the project.
  2. Go to the Repositories page.
  3. Click the Menu icon menu icon and click the Change icon.

    The Edit repository page is displayed.

  4. Enter the new credentials and click Update.

    The new credentials are updated and your access to the repository is retained.

Deleting a repository

You can delete repositories that you no longer require in your test environment.

Before you begin

You must have completed the following tasks:
  • Configured the repository that contains the test assets in your project.
  • Been assigned a project owner or a tester role with access to delete repositories.

About this task

You can delete a repository that you have configured for your project.

Procedure

  1. Open your project and go to the Repositories page.

    You can see a list of repositories that you added to the project.

  2. Delete a repository that you want to remove from the project.

    The repository is deleted and removed from the list.

What to do next

After you have edited the Git credentials, you can continue accessing the Git repository and the test assets. If you have deleted the Git repository, you cannot access the test assets available under that repository.