To make it more generic, you can use templates in your YAML pipeline. This means that you store the YAML file definitions for each task as separate files in a repository and you can refer to these templates from your YAML pipeline. The definitions are shared with all of the apps using them in their YAML pipeline, and if you need to fix something in the definition, you will fix it in one place. Of course, in this way, you can screw up all of your pipelines from one place. Be warned!
This is how you create the pipeline:
- Create a new repository for your templates.
- Put the YAML files with the definitions of the tasks into it:
- Add a reference to the repository to the YAML pipeline file:
The reference parameters are ...