You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current GitLab CI pipeline plugin uses the official template which usually needs to be modified before it works on our project. In practice, we rarely use official templates directly, but often customize our own templates according to different programming languages as shown below.
The .gitlab-ci.yml in a project can refer to these base templates, so that we only need to make a few small changes to implement a pipeline.
Every time I create a project I have to create a new .gitlab-ci.yml file, then copy and paste it and make minor changes. Even so, I still want to simplify it a bit more and turn this file all into a template and use dtm to push it directly to the project for me.
So I want the plugin to provide a template url parameter to specify the template path, and then a template var parameter to replace the variables that need to be replaced in the template.
daniel-hutao
changed the title
Proposal: I hope there will be an entry for custom Gitlab CI templates
🍀 Proposal: I hope there will be an entry for custom Gitlab CI templates
May 17, 2022
Description
The current GitLab CI pipeline plugin uses the official template which usually needs to be modified before it works on our project. In practice, we rarely use official templates directly, but often customize our own templates according to different programming languages as shown below.
The
.gitlab-ci.yml
in a project can refer to these base templates, so that we only need to make a few small changes to implement a pipeline.Every time I create a project I have to create a new
.gitlab-ci.yml
file, then copy and paste it and make minor changes. Even so, I still want to simplify it a bit more and turn this file all into a template and usedtm
to push it directly to the project for me.So I want the plugin to provide a template url parameter to specify the template path, and then a template var parameter to replace the variables that need to be replaced in the template.
Honestly, I think this approach works not only for GitLab CI, but also for other CI tools that support
pipeline as code
.Describe the Alternatives You Have Considered
The template url should be able to get the template file in a subdirectory of a repository
The text was updated successfully, but these errors were encountered: