Add Library
KubeRocketCI portal allows you to create a library, clone an existing repository with the library to your Version Control System (VCS), or using an external repository and importing a library to the environment. When a library is created or cloned, the system automatically generates a corresponding repository within the integrated VCS. You can create a library in YAML or via the two-step menu in the dialog.
To add a library, navigate to the Components section on the navigation bar and click + Create component:
Once clicked, the Create new component dialog will appear. Select Library and click Next:
Choose one of the strategies and click Create:
In the Create new component menu, select the necessary configuration strategy. The choice will define the parameters you will need to specify:
-
Create from template β creates a project on the pattern in accordance with a library language, a build tool, and a framework.
-
Import project - allows using existing VCS repository to integrate with KubeRocketCI. While importing the existing repository, select the Git server from the drop-down list and define the relative path to the repository, such as
epmd-edp/python-python-flask
.noteIn order to use the Import project strategy, make sure to adjust it with the Integrate GitLab/GitHub With Tekton page.
-
Clone project β clones the indicated repository into KubeRocketCI. While cloning the existing repository, it is required to fill in the Repository URL field and specify the Repository credentials field if needed:
Create Library in YAMLβ
Click Edit YAML in the upper-right corner of the Create Library dialog to open the YAML editor and create the library:
To edit YAML in the minimal editor, turn on the Use minimal editor toggle in the upper-right corner of the Create Application dialog.
To save the changes, select the Save & Apply button.