Skip to content

"include:" external script functionality does not work with gitlab-runner exec

Summary

Our team is using the https://docs.gitlab.com/ee/ci/yaml/#include functionality, but we are unable to locally test pipelines using gitlab-runner exec that use this include functionality. It appears that the include: line is completely ignored. I notice that gitlab-runner exec doesn't support all features of the full runner, but in the list of exec features supported and not supported (https://docs.gitlab.com/runner/commands/#limitations-of-gitlab-runner-exec), include is not listed as unsupported.

Steps to reproduce

  • Create a project with a .gitlab.yml file that has an include: https://some-public-repo/file.yml and which depends on something in the file.yml
  • run gitlab-runner exec docker <step>

Actual behavior

The exec fails since the include: line is not processed

Expected behavior

The exec succeeds since the include: line is processed.

Environment description

MacOS for running local gitlab-runner exec

Used GitLab Runner version

 gitlab-runner --version
Version:      10.8.0
Git revision: 079aad9e
Git branch:   
GO version:   go1.8.7
Built:        2018-05-22T03:23:18+00:00
OS/Arch:      darwin/amd64