1
在我的詹金斯的工作,我在下面的方式配置的git:致命的:无法读取用户名,没有这样的设备
sh("git config user.email [email protected]")
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” – aicastell
它不是你的git'user.emai/user.name',它是你的'用户名/密码'进行验证。 –