The "template" file used in JH GitLab CI yml does not point to JH repo

Issue Description

When a template is referenced in JH GitLab Saas project's CI yml file, JH repo should be used, while in GitLab.inc Saas, this repo is GitLab.inc repo

However, the actual situation is not like this.

  1. Create a project with below CI file in JH GitLab Saas
include:
  - template: Terraform/Base.latest.gitlab-ci.yml  
  
stages:
  - init
  - validate
  - build
  - deploy
  - cleanup

init:
  extends: .init

validate:
  extends: .validate

build:
  extends: .build

deploy:
  extends: .deploy

cleanup:
  extends: .destroy

The included template really exists in jh repo: template file

But the above CI failed to pass valid check, it returned:

Status:
Syntax is incorrect. CI configuration validated, including all configuration added with the includes keyword. 
init: unknown keys in `extends` (.init)

image

  1. modify the template to Terraform/Base.gitlab-ci.yml
include:
   - template: Terraform/Base.gitlab-ci.yml 
  
stages:
  - init
  - validate
  - build
  - deploy
  - cleanup

......

This time, CI validation check passed and runs well.

It's weird, there is only 1 template file under JH repo's Terraform folder, which is Base.latest.gitlab-ci.yml: image

The Terraform/Base.gitlab-ci.yml template does not exist in JH repo, but there is no error for above CI file.

The above Behaviors and phenomena indicate that: JH GitLab Saas references GitLab.inc repo?

I noticed that Terraform/Base.gitlab-ci.yml exists under GitLab.inc repo: image

指派人 加载中
工时统计 加载中
关于极狐(GitLab)
违法和不良信息举报中心 京公网安备11010502047940号 京ICP备2021036779号-1