To use a global template as a pipeline source:
In your SCM repository, create a new directory named
.jfrog-pipelines.In the directory, create two new files:
pipelines.ymlvalues.yml
pipelines.yml: Add the following in the
pipelines.ymlfile:valuesFilePath: ./values.yml include: template: jfrog/<global_template_name>/<template_version>
Example
valuesFilePath: ./values.yml include: template: jfrog/HelloWorld/1.0.0
Where:
jfrogis the predefined namespace to be used for global templates. This is mandatory and cannot be changed.global_template_nameis the name of the global template you want to use. Go to Pipelines | Reusablesand click theTemplatestab to find all the available preloaded templates.template_versionis the version of the template you want to use. Go to Pipelines | Reusables and click theTemplatestab to find the versions available for each template.valuesFilePathis the path where thevalues.ymlfile is stored.
values.yml: Update the
values.ymlfile to include the values required for the global template you are using. For more information, see the example values.yml file.In the JFrog Platform, go to Administration → Pipelines → Pipeline Sources and add the pipeline as a pipeline source. For more information, see Adding a Pipeline Source.
After your Pipeline Source syncs successfully, you can view the newly added pipeline by navigating to My Pipelines on the left navbar and clicking Pipelines → My Pipelines.
Go to Application → Pipelines → My Pipelines → All Pipelines and run the pipeline.