Jenkins templates
When multiple projects use the same template, you can import it into the platform through a code repository. When there is a new template in the code repository, the platform supports synchronizing the template in the repository.
Configure template repository
When all projects need to use the same pipeline template, the platform supports importing the platform pipeline template. Before importing the template, you need to configure the code repository where the template is located.
Procedure
-
In the left navigation bar, click Pipelines > Custom Templates.
-
Click Actions > Config Template Repository. Refer to the following instructions to configure the relevant parameters:
-
Code Repository Address: Enter the code repository download address. For example:
https://github.com/example/example.git. -
Branch: Enter the branch where the code is located. For example:
master. -
Secrets: Select a credential or click Add secret, refer to Creating a Secret .
-
-
Click Confirm.
Synchronize the chart repository
When there is a new platform custom pipeline template in the code repository, it can be synchronized and imported into the platform.
Procedure
-
In the left navigation bar, click Pipelines > Custom Templates.
-
Click Actions > Sync templates.