Lesson 2: Integrating with GitHub
You can learn about integrating the GitHub plug-in in HCL DevOps Velocity (Velocity).
Before you begin
- Ensured that you have a valid GitHub account and created a repository.
- Generated personal access token in GitHub.
Procedure
-
Perform the following steps to integrate GitHub in HCL DevOps
Velocity (Velocity):
-
Select GitHub from the list, and then click
Install.
The Add GitHub Integration dialog is displayed.
- In the Integration name field, type a name for the integration. For example, TUTORIAL_GitHub.
-
In the API URL field, type the URL for the GitHub project. For
example, https://api.github.com.
Note: For enterprise edition, use the URL <Your GitHub enterprise URL>/api/v3. For example, https://github01.abc.com/api/v3
- In the Owner field, type the GitHub username. For example, myGitHubID.
-
Perform any of the authentication method listed in the following table:
Authentication method Action Personal access token Perform the following steps to authenticate with personal access token server:- In the Personal Access Token filed, type the personal access token.
Proxy server Perform the following steps to authenticate with proxy server:- Select the Show hidden properties checkbox.
- Type the URL of the proxy server and the port number in the Proxy Server field.
- Type the username for the proxy server in the Proxy User Name filed.
- Type the password for the proxy server in the Proxy Password filed.
- In the Branch field, type the branch name to pull the commits from GitHub repository. For example main, release, mainrepo
- Optional: In the Additional branches field, type the additional branches.
-
Use defaults for the remaining fields in the integration, and the click
Add.
The integration is listed on the Integrations page and Status field displays that the integration is
Online.If the integration is not successful, the Status field displays that integration is
Failed. You must use the View log option to troubleshoot the integration. -
Synchronization of plug-in is set to 5 minutes by default. You can disable
synchronization by using toggle icon in the Disable/Enable section
on the Configured tab.
Note: Synchronization of plug-in ensures that the changes or updates are consistently reflected across all the integrated applications.In this lesson, you have learned to integrate GitHub plug-in in Velocity.