您好:我想向W.r.t请求指导我遇到的问题 .
我有2个Repos,目标是在Repo#1中引用Repo#2中的文件
回购#1 - https://gitlab.xyz.com/ertm/search/housekeeper_job.git
回购#2 - https://gitlab.xyz.com/ertm/gitlab-pipeline.git
我在housekeeper_job(Repo#1)存储库中定义了如下的.gitmodule文件
[submodule "gitlab-pipeline"]
path = gitlab-pipeline
url = ../../gitlab-pipeline.git
在housekeeper_job存储库中.gitlab-ci.yml的一个阶段中,我正在尝试调用驻留在gitlab-pipeline(Repo#2)存储库中的文件(脚本) .
source /ertm/gitlab-pipeline/pipeline.sh pipeline.sh是驻留在Root文件夹中gitlab-pipeline.git的文件 .
Excerpt from the Output of the failed Pipeline job
克隆存储库...
克隆到'/ertm/search/housekeeper_job' ...
检查4fe7240d作为功能/ hkeeper ...
以递归方式更新/初始化子模块...
检查缓存是否为默认值
成功提取缓存
$ source /ertm/gitlab-pipeline/pipeline.sh
/ bin / bash:第87行:/ertm/gitlab-pipeline/pipeline.sh:没有这样的文件或目录
-
gitlab-runner 11.2.0的版本
-
企业版Gitlab 10.X版
我能知道我做错了什么,或者我在这里缺少什么步骤?