Using 'include' keyword to offload some configuration to dedicated yml files

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_Elem2:
extends: .template

GroupA_Elem3:
extends: .template

GroupB_Elem1:
extends: .template

GroupB_Elem2:
extends: .template

GroupB_Elem3:
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. Any idea why and what would be the proper way to do it?

Thanks

Vlad