jenkins编译代码git脚本报错

+ sh make_release.sh
fatal: could not read Username for 'http://gitlab.yintech.net': No such device or address

vim .git/config

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = http://gitlab.***.net/tc/***.git
fetch = +refs/heads/*:refs/remotes/origin/*

改成

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = http://账户:密码@gitlab.***.net/tc/***.git
fetch = +refs/heads/*:refs/remotes/origin/*

原文地址:https://www.cnblogs.com/liqing1009/p/13262637.html