我尝试使用 jenkins 执行 shell(而不是 git 插件)克隆(镜像)我的 bitbucket 存储库。
我的凭据:
username
passwd
保存在变量中:myuser
凭证是正确的。我们用了这个插件 https://wiki.jenkins.io/display/JENKINS/Credentials+Binding+Plugin保存凭据。我们正在对其他一些存储库(在我们本地的 git 上,而不是 bitbucket 上)执行完全相同的操作,而且效果非常好。
现在我尝试:
git clone --mirror https://${myuser}@bitbucket.org/team/repo.git
我面临的错误是:
fatal: unable to access 'https://****@bitbucket.org/team/repo.git/': Port number ended with 'T'
只是遇到了类似的问题(尝试通过 HTTPS 从 Gerrit 克隆,使用 Gerrit UI 生成的随机 HTTP 密码,URL 形式为https://<username>:<password>@<gerrit.repo.url>
并收到“端口号以...结束”错误),并且密码似乎必须是正确引用网址.
在尝试使用“store”助手设置 git-credentials 并查看它创建的文件后意识到:-)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)