usage of the include
Hi there,
I have quite a large gitlab-ci.yml where a number of templates are extended by a large number of jobs. I am trying to reduce the size of the main configuration file by moving some of these job definitions to dedicated includes. Something like this:
.template:
stage: test
GroupA_Elem1:
extends: .template
GroupA_Elem1:
extends: .template
GroupA_Elem1:
extends: .template
GroupB_Elem1:
extends: .template
GroupB_Elem1:
extends: .template
GroupB_Elem1:
extends: .template
would need to become
.template:
stage: test
include: “group_a.yml”
include: “group_b.yml”
What i run into is that the first include is somehow ignored and only jobs from the second include are showing up in the pipeline. Any idea why and what would be the proper way to do it?
Thanks
Vlad