【发布时间】:2021-04-30 03:28:13
【问题描述】:
我是 Redmine 插件的测试人员。我想测试所有插件。
为了做到这一点,我在一个插件的存储库(由 Github 管理)下设置了 .circleci/config.yml 并尝试测试。但我收到以下错误消息。
#!/bin/bash -eo pipefail
git clone https://github.com/xxxxxx/lad.git
Cloning into 'lad'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Exited with code 128
我想了解获取与我现在使用的存储库不同的私有存储库克隆的方法。
以下是我现在的.circleci/config.yml。
version: 2
jobs:
build:
docker:
- image: ruby:2.3.0
environment:
- LANG: C.UTF-8
environment:
BUNDLE_GEMFILE: /root/project/.circleci/Gemfile
steps:
- checkout
- run: git clone --depth=1 --branch=${REDMINE_VERSION:-3.4-stable} https://github.com/redmine/redmine.git
# this is private repository ↓
- run: git clone https://github.com/xxxxxx/lad.git
- run:
name: Check status
command: |
pwd
ls -al
【问题讨论】:
-
我在访问项目中的私有存储库时遇到了同样的问题。你找到解决办法了吗?