I’m trying out the new template functionality but ran into issues when mixing a template with other pipelines. It works if I only specify the template, but not if i mix them or use multiple templates. Is this expected behavior?
.drone.yml (this will not work)
- name: mystepname
Template (from docs example)
local stepName = std.extVar("input.stepName");
local image = std.extVar("input.image");
local commands = std.extVar("input.commands");
You cannot mix templates and pipelines in the same yaml. A single template, however, can return multiple pipelines. We will update the documentation accordingly.
Ok. I see. Thanks for the reply.
Has the documentation for templates been updated yet ? I was trying to use multiple ‘kind: template’ in a drone.yml file, but it doesn’t seems to work. Only the first template seems to trigger.
Your last comment suggests that we need to do this inside the template file rather than the drone file.
@david-knott Unfortunately, Drone also doesn’t support the multiple templates in a single YAML file. Drone template not triggering build