The page has been translated by Gen AI.
Code Repository
Users can view the list of code repositories, such as GitHub and GitLab, used in the project and add repositories from the project’s code repository menu.
Getting Started with Code Repository
To start a code repository, follow these steps.
- On the Main page, click the Project card. You will be taken to the Project Dashboard page.
- In the left menu, click the Repository > Code Repository menu. You will be taken to the Code Repository page.
Add code repository
To add a code repository, follow these steps.
- On the Code Repository page, click the Add Code Repository button in the upper right. You will be taken to the Add Code Repository page.
- On the Add Code Repository page, enter and configure each item.
- Connection Test Click the button.
- Click the Save button.
Item Explanation Repository type Select the repository to use - Registered tools: Users can select and use the types of SCM Repository tools (
Github,Gitlab, etc.) that are available. - Unregistered tools: You can enter the domain of a tool that is not registered. The unregistered tool entry appears only for App templates that do not include source code (
Environment Only).
New/Existing usage Select Create new repository or Use existing repository - The activation status varies depending on specific conditions. For details, see Table. Conditions for activating new repository creation and existing repository usage.
Repository information Enter repository information - When creating a new repository, the URL is formed from the project group name/project name.
Authentication information Enter authentication credentials. Repository information Enter repository information - You can use a code repository that is not registered as a tool in DevOps Console.
- You must also go through the URL check process.
Table. Code Repository Add Input Items - Registered tools: Users can select and use the types of SCM Repository tools (
Managing code repositories
Code repository list
| Item | Explanation |
|---|---|
| User permission settings | User Permission Settings The popup window opens. |
| Webhook configuration | Webhook Settings The popup window opens. |
| Edit icon | The code repository’s Edit Authentication Information popup window opens. |
| Delete | Delete the code repository. When deleting, you can choose whether to also delete the code repository in SCM. |
Table. Code Repository List Screen Items
Add account to code repository
To add an account to the code repository, follow these steps.
- On the Code Repository page, click the User Permission Settings icon for the repository you want to configure. The User Permission Settings popup window will open.
- User Permission Settings In the popup window, enter the credentials of the account you want to add, then click the Save button to complete adding the account.
Setting up a webhook in the code repository
You can configure a webhook to trigger the pipeline when changes such as commit or push occur on a code repository branch.
To set up a webhook, follow these steps.
- Click the Webhook Settings icon for the code repository you want to configure on the Code Repository page. The Webhook Settings popup opens.
- In the Webhook Settings popup, click the Add button.
- Webhook Settings In the popup window, select the pipeline you want to run, enter the branch name, and click the Save button to complete the webhook configuration.
Change account in code repository
To change the account in the code repository, follow the steps below.
- On the Code Repository page, click the Edit icon of the code repository you want to change. The Edit Authentication Information popup will open.
- Edit authentication information after entering the authentication information in the popup window, click the Save button to complete the account change.
Delete code repository
To delete the code repository, follow these steps.
- Code Repository page, click the X icon of the code repository you want to delete. Delete Code Repository popup opens.
- In the Delete code repository popup, select also delete the repository in SCM and click the Confirm button to complete the code repository deletion.
Reference
Also delete the repository in SCM.
- Selection: Both the code repository list and the actual code repository in SCM will be deleted.
- Unselected: It is deleted only from the code repository list, while the code repository in SCM remains.