mdubourg001 / glci

🦊 Test your Gitlab CI Pipelines changes locally using Docker.
568 stars 17 forks source link

Extends with included, local yml files doesn't find job #33

Open renestalder opened 3 years ago

renestalder commented 3 years ago

When trying to use extends with a job defined in locally included yml file, glci 0.4.1 tells me, Can't extend job '.docker_build': job doesn't exist..

Simplified example:

docker.yml

.docker_build:
  image: docker:stable
  scripts:
    .

.gitlab-ci.yml

include:
  - local: '/gitlab-ci-templates/docker.yml'

my job:
  extends: .docker_build
  variables:
    ...

That example works on GitLab.com.

Is this a limitation of glci or a bug?

mdubourg001 commented 3 years ago

I'm sorry but I am not able to reproduce with the exact example you provided, could you give some more informations about your OS, and the version of glci you're using ?