首页 > 解决方案 > 在 gitlab-ci 配置上使用多个存储库

问题描述

您好,我想知道如何将 gitlab Ci/CD 与文件 gitlab-ci.yml 所在的一个存储库一起使用。以及一个作为 vue 工具组件的存储库。

我用私人访问令牌尝试了一些东西,但出现了错误:

$ curl "https://gitlab.com/BGDataPLM/octopus/octopus-vue-tools?private_token=MyPrivateKey"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    98  100    98    0     0    347     <html><body>You are being <a href="https://gitlab.com/users/sign_in">redirected</a>.</body></html> 0 --:--:-- --:--:-- --:--:--   348
$ npm install
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://gitlab.com/BGDataPLM/octopus/octopus-vue-tools.git
npm ERR! 
npm ERR! remote: HTTP Basic: Access denied
npm ERR! fatal: Authentication failed for 'https://gitlab.com/BGDataPLM/octopus/octopus-vue-tools.git/'
npm ERR! 
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-04-06T13_51_56_682Z-debug.log
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1

我想知道如何从我的工作中获得另一个仓库的访问权限,谢谢

标签: laravelvue.jshttpcontinuous-integrationgitlab

解决方案


推荐阅读