include external files failed with lint error

Hi there,

we have a linter error if we include external yml files in our pipeline.

In our .gitlab-ci.yml file we use following code:

include: '/templates/stages.yml'

In our /templates/stages.yml we use the following code:

stages:
    - prepare
    - build
    - test
    - publish

If we run the pipeline, we have the error like jobs:include config should be a hash

We try the following code in our .gitlab-ci.yml file:

include:
    - '/templates/stages.yml'

Same error.....

What is the problem?

We use gitlab-ce 11.3.5