Skip to content

Gitlab Templates Downstream

Introduction

The Gitlab Templates Downstream (GTD) project is designed for testing merge requests of the Gitlab Templates (GT) project.

Gitlab Templates version

By default, pipelines in GTD use the main reference/version/tag of GT, because this project always needs to test against the latest changes to the upstream GT repository. This has been achieved by creating an override CI/CD variable, in the project settings, named _GITLAB_TEMPLATES_REF and setting it to main instead of the global default-ref. This affects the scheduled pipelines and any pipeline triggered by a push to the branch.

CI/CD Pipeline Variables

When starting a pipeline manually via the UI, the two form variables _GITLAB_TEMPLATES_REPO and _GITLAB_TEMPLATES_REF are set to the global defaults project/gitlab_templates and default-ref. To test against the main ref just change the value of _GITLAB_TEMPLATES_REF to main.

Manual Pipeline UI

To test against a GT merge request branch, set both values, for example:

_GITLAB_TEMPLATES_REPO = issue/gitlab_templates-3546508
_GITLAB_TEMPLATES_REF = 3546508-recipes-path