Recursive Includes

Description

With the introduction of the include there are many situations that this helps resolve. The first thing I thought of was abstraction. With continuous integration one of the big pain points is updated repos. This would give the level of abstraction needed to update a single repo and have it referenced in it's own scheme. However, upon using the include with three different yaml files I was unable to use an include recursively.

a.yml

stages:

- foo

- bar

include: b.yml

b.yml

include: c.yml

c.yml

myjob:

- stage: foo

Proposal

I propose allowing the includes to access yml file jobs recursively. Have the user specify a depth at which includes will be used with or create a reasonable default level higher than 1 level deep which is the current state.

Links / references

https://gitlab.com/gitlab-org/gitlab-ee/issues/5507#note_67754318

Edited Apr 12, 2018 by Steven Leath
Assignee Loading
Time tracking Loading