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/*

posted @ 2020-07-07 19:10  鸾舞春秋  阅读(515)  评论(0编辑  收藏  举报