错误描述
使用jenkens打包时候报错:
[test_pack] $ /bin/bash /tmp/jenkins1100189036342227045.sh
error: cannot fork() for git-credential-store: Resource temporarily unavailable
fatal: could not read Username for 'xxxxx': No such device or address
Already up-to-date.
error: cannot fork() for git-credential-store: Resource temporarily unavailable
fatal: could not read Username for 'xxxxx': No such device or address
Build step 'Execute shell' marked build as failure
Finished: FAILURE
解决方法
一般是由于目标服务器重启了导致git账户没有登陆引起的。
登陆服务器上,手动执行git pull,拉取代码也会提示输入git账号密码,输入即可。