Gitlab Omnibus edition v14.8
Ubuntu 20.04
Receiving: This GitLab CI configuration is invalid: Template file MyTemplates/Jobs/windows-support.yml
is not a valid location!
Project .gitlab-ci.yml
include:
template: MyTemplates/Jobs/windows-support.yml
my_job:
script:
- !reference [.get_powershell_credential, script]
Template /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ci/templates/MyTemplates/Jobs/windows-support.yml
variables:
PS_USERNAME: "MYDOMAIN\\myuser"
.get_powershell_credential:
script:
- $psusername=(Get-ChildItem Env:PS_USERNAME).Value
I know the contents of the included script are ok as the following gitlab-ci.yml works - only difference is getting the script via http vs gitlab local file system.
include:
remote: "http://my.localwebsite.com/gitlab/MyTemplates/Jobs/windows-support.yml"
...