Gitlab runner尚未访问子模块

Gitlab runner尚未访问子模块,gitlab,gitlab-ci-runner,Gitlab,Gitlab Ci Runner,我创建了一个带有子模块的新项目,并希望运行gitlab-ci.yml。 但每次跑步者告诉我他无法进入或找不到项目。 运行程序是windows 10系统上的共享运行程序(必需)。它适用于旧项目,但不适用于新项目 你知道我做错了什么吗 我已经做了: 测试另一名跑步者 对运行程序使用获取和克隆 运行手动git克隆--递归git@gitlab.... 关于runner VM 克隆回购递归在我目前的电脑上,它的工作 CI脚本: stages: - build variables: ARTI

我创建了一个带有子模块的新项目,并希望运行gitlab-ci.yml。 但每次跑步者告诉我他无法进入或找不到项目。 运行程序是windows 10系统上的共享运行程序(必需)。它适用于旧项目,但不适用于新项目

你知道我做错了什么吗

我已经做了:

  • 测试另一名跑步者
  • 对运行程序使用获取和克隆
  • 运行手动git克隆--递归git@gitlab.... 关于runner VM
  • 克隆回购递归在我目前的电脑上,它的工作
CI脚本:

stages:
  - build

variables:
  ARTIFACTS_OUTPUT_PATH: "./builds"
  GIT_SUBMODULE_STRATEGY: recursive

test_123:
    stage: build
    only:
        - tags
        - triggers
        - schedules
        - web
    script: 
        - some commands

    artifacts:
        paths:
          - ./builds/*
    tags:
        - windows
错误:

<!-- language: lang-sh -->
Cloning into 'C:/gitlab-runner/builds/765197b3/0/user/ttttttt'...
Submodule 'hfdg' (git@gitlab.XXXXXXXX:user/hfdg.git) registered for path 'hfdg'
Cloning into 'C:/gitlab-runner/builds/765197b3/0/user/ttttttt/hfdg'...
remote: 
remote: ========================================================================
remote: 
remote: The project you were looking for could not be found.
remote: 
remote: ========================================================================
remote: 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@gitlab.XXXXXXXX:user/hfdg.git' into submodule path 'C:/gitlab-runner/builds/765197b3/0/user/ttttttt/hfdg' failed
Failed to clone 'hfdg'. Retry scheduled
Cloning into 'C:/gitlab-runner/builds/765197b3/0/user/ttttttt/hfdg'...
remote: 
remote: ========================================================================
remote: 
remote: The project you were looking for could not be found.
remote: 
remote: ========================================================================
remote: 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@gitlab.XXXXXXXX:user/hfdg.git' into submodule path 'C:/gitlab-runner/builds/765197b3/0/user/ttttttt/hfdg' failed
Failed to clone 'hfdg' a second time, aborting

正在克隆到“C:/gitlab runner/builds/765197b3/0/user/ttttt”。。。
子模块“hfdg”(git@gitlab.XXXXXXXX:user/hfdg.git)为路径“hfdg”注册
正在克隆到'C:/gitlab runner/builds/765197b3/0/user/ttttt/hfdg'。。。
远程:
远程:========================================================================
远程:
远程:找不到您正在查找的项目。
远程:
远程:========================================================================
远程:
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并且存储库存在。
致命:克隆'git@gitlab.XXXXXXXX:user/hfdg.git'进入子模块路径'C:/gitlab runner/builds/765197b3/0/user/ttttttt/hfdg'失败
未能克隆“hfdg”。重试计划
正在克隆到'C:/gitlab runner/builds/765197b3/0/user/ttttt/hfdg'。。。
远程:
远程:========================================================================
远程:
远程:找不到您正在查找的项目。
远程:
远程:========================================================================
远程:
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并且存储库存在。
致命:克隆'git@gitlab.XXXXXXXX:user/hfdg.git'进入子模块路径'C:/gitlab runner/builds/765197b3/0/user/ttttttt/hfdg'失败
第二次克隆“hfdg”失败,正在中止

问题在于gitlab运行程序没有分配给subrepo。因此,跑步者没有进入subrepo的权限