在我的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
有什么问题,如何将其推送到代码库?
user.email/user.name
无关,而是与你的用户名/密码
进行身份验证有关。 - Sajib Khan