Creating a Repository Using a Template
You can create a repository using a CodeArts Repo template on the CodeArts Repo console.
Procedure
- Log in to the Console, click in the upper left corner of the page, search for CodeArts Repo, click , the repository list page is displayed.
- Click New repository. The Project and Repository Type page is displayed. Select an existing project or click Create Project from the Project drop-down list box.
- The code repository must be in a project. You can view the repository dashboard by project.
- If the account does not have a project, click Create Project in the drop-down list box to create a Scrum or an IPD-Self-Operated Software/Cloud Service project.
- Set Repository Type to Template.
- Click Next. The Create Template Repository page is displayed.
- Select your desired template. Fuzzy search is supported.
- Click Next. On the Basic Information page, enter basic repository information.
Table 1 Parameters for creating a repository using a template Parameter
Mandatory
Remarks
Repository Name
Yes
Start with a letter, digit, or underscore (_), and use letters, digits, hyphens (-), underscores (_), and periods (.). Do not end with .git, .atom, or periods (.). Min. 2 characters. Max. 255 characters.
Description
No
Enter a description for your repository. The description can contain a maximum of 2000 characters.
Initial Settings
No
NOTE:- The function of Make all project developers automatic repository members is unavailable. Project managers and developers will no longer be automatically added to repository members. By default, only project creator and administrator will be added to repository members.
- If the template can be used to automatically create pipeline, this parameter is not involved.
- Project members can be automatically added to the repository by synchronizing member groups.
Visibility
Yes
The options are as follows:
- Private: Only repository members can access and commit code.
- Public: Read-only for visitors and hidden from repository lists and search results.
Open-Source License
No
For public repository, you can select an existing license from the drop-down list box.
- Click OK to create the repository.
When you create a repository by template, the repository type of the selected template will be automatically configured for the repository.
The repository created using the template contains the repository file structure preset in the template.
Automatically Creating a Pipeline
A pipeline can be automatically created when a repository is created using a template. Note that the host used in CodeArts Deploy must be changed to the actual environment so that the pipeline can be successfully executed.
- Access the repository list page.
- Click Create Repository. The Project and Repository Type page is displayed.
- Select an existing project from the Project drop-down list box or create one.
- A repository must be associated with a project.
- If the account does not have a project, click Create Project in the drop-down list box to create a Scrum or an IPD-Self-Operated Software/Cloud Service project.
- If you create a repository in a project, the project is selected for Project by default, and the Project parameter is hidden on the repository creation page.
- Set Repository Type to Template.
- Click Next. The Select Repository Template page is displayed.
- Choose Automated Pipeline Creation > Yes in the navigation pane on the left to display templates that can be used to automatically create a pipeline.
- Select a template as required, click Next, enter basic repository information, and click OK.
- After the repository is created, you can view the pipeline that is automatically created on the pipeline list page displayed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot