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.yml
values.yml
pipelines.yml: Add the following in the
pipelines.yml
file:valuesFilePath: ./values.yml include: template: jfrog/<global_template_name>/<template_version>
Example
valuesFilePath: ./values.yml include: template: jfrog/HelloWorld/1.0.0
Where:
jfrog
is the predefined namespace to be used for global templates. This is mandatory and cannot be changed.global_template_name
is the name of the global template you want to use. Go to Pipelines | Reusablesand click theTemplatestab to find all the available preloaded templates.template_version
is the version of the template you want to use. Go to Pipelines | Reusables and click theTemplatestab to find the versions available for each template.valuesFilePath
is the path where thevalues.yml
file is stored.
values.yml: Update the
values.yml
file 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.