Hello Joel, GoCD does not support templates in config repositories. There has been some conversations [1] [2] around this if it helps.
While you are looking at Pipeline as code, you can also checkout the Groovy Config Repo plugin and the branch/pr[3] support provided by it. [1] https://github.com/gocd/gocd/issues/5675 [2] https://github.com/tomzo/gocd-yaml-config-plugin/pull/104 [3] https://github.com/gocd-contrib/gocd-groovy-dsl-config-plugin#support-for-branches-and-prs Thanks, Mahesh On Thursday, December 3, 2020 at 6:28:03 AM UTC+5:30 [email protected] wrote: > I'm currently checking out the Pipeline as Code feature (or rather > philosophy). So far I've been looking at YAML. > > Is there a way to put a template as code in the repository as well? Right > now I have my pipelines as YAML code in repositories and they refer > templates defined through the WebUI / XML on the server. I'd really like it > if I can put a template directly in the project repository and then have > various pipelines-as-YAML-code using that YAML pipeline template. > > Can we do this? > > > Best regards, > ~ Joel > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/30fe0bec-6e56-4071-93f7-389639d23034n%40googlegroups.com.
