【发布时间】:2017-03-03 10:48:15
【问题描述】:
在我的 Jenkins 工作中,我通过以下方式配置 git:
sh("git config user.email my.email@google.com")
sh("git config user.name my-user-name")
sh("git tag ${BUILD_NUMBER}")
sh("git push origin --tags")
但是,在最后一行,当我尝试推送到我的存储库时,我收到关于存储库的以下错误:
fatal: could not read Username for 'http://my-git-repo.com:8000': No such device or address
出了什么问题,如何将其推送到存储库?
【问题讨论】:
-
你试过使用--global吗?试试这个: git config --global user.name "my-user-name"
-
这不是你的 git
user.emai/user.name,而是你的username/password进行身份验证。