Is it possible to parameterize scheduling for a template?

13 views
Skip to first unread message

Kenneth Wayman

unread,
Jul 21, 2022, 9:32:54 AM7/21/22
to go-cd
We use a single template for both snapshot and release builds. We would like the snapshot builds to be run on every push, but we only want release builds to happen if triggered manually. For every pipeline that uses the template, the "Automatic Pipeline Scheduling" checkbox is gray and says, " Since this pipeline is based on [name] template, automatic/manual behaviour of the pipeline is determined by the template's first stage." I looked at "config.xml", but it looks like changing from automatic to manual triggering requires adding the "approval" XML element and is thus not parameterizable in the same way as, say, the argument to an exec task. Is there a way around that limitation? Right now we are running our snapshot builds manually and it's a bit of a headache. 

Thanks,
Ken

Kenneth Wayman

unread,
Jul 21, 2022, 9:46:14 AM7/21/22
to go-cd
Actually, just found this conversation that mentions a workaround using the "timer" feature: https://groups.google.com/g/go-cd/c/2d5SPXoKB3Y/m/gJlPcpZDfl4J .  That is pretty much adequate for my needs!

-Ken

Reply all
Reply to author
Forward
0 new messages