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',它是你的'用戶名/密碼'進行驗證。 –