gitlab-runner GIT_SUBMODULE_FORCE_HTTPS

gitlab-runner GIT_SUBMODULE_FORCE_HTTPS

我有一个旧版本的 gitlab-runner(gitlab-runner 11.10.1 (1f513601))。我试图强制使用 HTTPS 进行子模块克隆。在我的 gitlab-ci.yml 文件中,我有几个变量行,如下所示。在最底部的日志中,gitlab-runner 似乎仍在使用 SSH。11.10.1 中是否存在不遵守 GIT_SUBMODULE_FORCE_HTTPS 设置的错误?

variables:
    GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH/$CI_COMMIT_BRANCH
    GIT_STRATEGY: fetch
    GIT_DEPTH: 1
    GIT_SUBMODULE_STRATEGY: recursive
    CI_PROJECT: ""
    CI_COLLECT_COVERAGE: 0
    CI_WHO_LIST: ""
    CI_TESTLIST: regress_full_list
    GIT_SUBMODULE_FORCE_HTTPS: "true"

当我的管道运行时,我在日志中看到以下内容:

Cloning into '/scratch01/fpga_ci7/builds/0/fpga/prime/topsim'...
remote: 
remote: ========================================================================
remote: 
remote: The project you were looking for could not be found or you don't have permission to view it.
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 '[email protected]:fpga/topsim.git' into submodule path '/scratch01/fpga_ci7/builds/0/fpga/prime/topsim' failed
Failed to clone 'topsim'. Retry scheduled

相关内容