Template as code

116 views
Skip to first unread message

Joel Bodenmann

unread,
Dec 2, 2020, 7:58:03 PM12/2/20
to go-cd
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

mahesh....@gmail.com

unread,
Dec 3, 2020, 8:23:26 AM12/3/20
to go-cd
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.


Thanks,
Mahesh
Reply all
Reply to author
Forward
0 new messages