Home / Project management / Pipeline management / Jenkins templates

Jenkins templates

The platform integrates project custom pipeline templates. You can import them into the platform from the code repository. When there are new templates in the code repository, the platform supports synchronizing the templates in the repository.

Caution: The pipeline template is written in YAML file format and parsed and rendered using Go Template. The logic part of the pipeline needs to follow the Jenkinsfile syntax.

Configure template repository

  1. In the left navigation bar, click Pipelines > Project custom templates.

  2. Click Actions > Config Template Repository. In the Config Template Repository window, refer to the following instructions to configure the relevant parameters:

    • Already Integrated: Select the integrated code repository where the custom pipeline templates are saved.

      • Integration Project: Select the project name in the integrated code management tool.

      • Code Repositorie: Select the code repository under the project in the toolchain.

      • Branch: Select the branch where the code is located. For example: master.

    • Input: Manually enter the code repository to use, which is suitable for the situation where the custom pipeline template is not saved in the code repository already bound to the platform.

      • 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 credentials or click Add secret, refer to Creating Credentials .

  3. Click Confirm.

Synchronize the chart repository

When there are new custom pipeline templates in the code repository, they can be synchronized and imported into the platform.

  1. In the left navigation bar, click Pipelines > Project custom templates.

  2. Click Actions > Sync templates.