Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Potentially relevant to #2, though it's more of a idea to throw out there; I'm not sure it's exactly what was intended.
It's working well for us and supports the user's choice of templating engine. Indeed, they could choose to use (or combine from different sources in one configrepo) different templating engines.
The only requirement is that you have a script or program to process files with a user-defined naming pattern.
Example
Example config: (
mustache.gocd-yaml-generator.yaml
)Example input: (
test.gocd.mi.yaml
)Note the file does not have to be combined (data and template) as the example above shows. That was just convenient for demo.
Usage of "inclusion" within the chosen templating engine would allow the instantiating file to specify the data and a reference to the template to use. With mustache something similar to
Where
first-pipeline.mustache
andsecond-pipeline.mustache
are local templates for particular pipelines. They inherit the scope of thebranches
"loop" (i.e. can usename
in this case).I think this strategy gives a lot of flexibility. I just wanted to put it out there to see if there was any interest in getting it (or something similar) merged into the main plugin.