Working with Git repositories
Adding another repository
Updating the authentication credentials of the repository
Before you begin
You must be a project owner or a tester with access to edit repositories.
About this task
Procedure
- Open the project.
- Go to the Repositories page.
-
Click the Menu icon and click the Change
icon.
The Edit repository page is displayed.
-
Enter the new credentials and click
Update.
The new credentials are updated and your access to the repository is retained.
Refreshing repositories manually
Before you begin
- Configured the repository that contains the test assets in your project.
- Been assigned a project owner or a tester role.
Procedure
- Open the project.
- Go to the Repositories page.
-
Click the Menu icon and select Refresh.
The refresh activity is triggered.Note: The Refresh option is disabled when the refresh is in progress. After the refresh is completed, the Refresh option is enabled.The following table lists the icons and their description based on the status of the refresh activity:
Refresh icon Description The last refresh activity was successful. The last refresh activity was successful but errors were found while processing some of the test assets. To view the error details of the test assets for a specific repository, you can click the arrow inline with the repository name.
You can resolve the errors of these test assets in the Git server, and then refresh the server repository, if required.
Note: The repository, which contains the branch that is selected in the Global branch field, displays the unprocessed test assets for that branch. Other repositories display the unprocessed test assets for their master branch.The refresh activity was not successful due to any one of the following reasons: - Internal error
- Connection issue
- Authentication failure
- Disk quota exceeded
- Repository unreachable
Results
- The time when it was last refreshed.
- Latest commit ID and message of the remote repository.
Creating webhooks
Before you begin
- Configured the repository that contains the test assets in your project.
- Been assigned a project owner or a tester role.
Procedure
- Open the project.
- Go to the Repositories page.
-
Click the Menu icon and then click Webhook.
The Webhook Configuration dialog box is displayed.
-
Copy the URL and the Secret of the repository that you want to
configure.
Note: The URL and the Secret details are specific to a repository.
-
Click the link of the repository for which you want to configure the
webhook.
The remote repository page is displayed.
- Paste the details, which you copied from HCL OneTest™ Server, in the appropriate fields of the remote repository.
Results
Deleting a repository
Before you begin
- 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
Procedure
-
Open your project and go to the Repositories page.
You can see a list of repositories that you added to the project.
-
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.