无法将 jenkins 连接到远程 git 存储库
Can't connect jenkins to a remote git repository
我正在尝试将我的 jenkins 连接到远程 git 存储库,例如 aa-bb-server
在凭据配置中,我输入了用户名和私钥,这是我得到的:
Failed to connect to repository : Command "git ls-remote -h aa-bb-server HEAD" returned status code 128:
stderr: fatal: 'aa-bb-server' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
将 Jenkins 用户更改为 root
无效。
我可以在本地通过 ssh 连接到存储库、克隆等
您好,请按照以下步骤操作
如果您在服务器中安装了 jenkins,请初始化 git 空存储库 --> git init
然后转到 github --> 单击 配置文件下拉列表 --> 设置 --> 开发者设置 --> 个人访问令牌 --> 生成新令牌 --> select 所有范围 --> 复制令牌
然后转到 Jenkins --> 管理 Jenkins --> github 设置 --> 添加用户 --> Select 密文** --> **粘贴令牌
And test your git hub access
after that go to project and add your repository URL (which is ends with .git)
我正在尝试将我的 jenkins 连接到远程 git 存储库,例如 aa-bb-server
在凭据配置中,我输入了用户名和私钥,这是我得到的:
Failed to connect to repository : Command "git ls-remote -h aa-bb-server HEAD" returned status code 128:
stderr: fatal: 'aa-bb-server' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
将 Jenkins 用户更改为 root
无效。
我可以在本地通过 ssh 连接到存储库、克隆等
您好,请按照以下步骤操作
如果您在服务器中安装了 jenkins,请初始化 git 空存储库 --> git init
然后转到 github --> 单击 配置文件下拉列表 --> 设置 --> 开发者设置 --> 个人访问令牌 --> 生成新令牌 --> select 所有范围 --> 复制令牌
然后转到 Jenkins --> 管理 Jenkins --> github 设置 --> 添加用户 --> Select 密文** --> **粘贴令牌
And test your git hub access after that go to project and add your repository URL (which is ends with .git)