Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 詹金斯;“设备或资源忙”;_Git_Jenkins - Fatal编程技术网

Git 詹金斯;“设备或资源忙”;

Git 詹金斯;“设备或资源忙”;,git,jenkins,Git,Jenkins,当我在登录到VM时运行以下命令时: git config -- global user.email [myEmailHere]@[mydomain].com 这个很好用 但是,当Jenkins作业通过groovy运行相同的命令时,我会得到以下错误: error: could not write config file /home/jenkins/.gitconfig: Device or resource busy 这是什么原因造成的? 我在网上查了一下,仍然找不到任何有用的东西。在你的工作

当我在登录到VM时运行以下命令时:

git config -- global user.email [myEmailHere]@[mydomain].com
这个很好用

但是,当Jenkins作业通过groovy运行相同的命令时,我会得到以下错误:

error: could not write config file /home/jenkins/.gitconfig: Device or resource busy
这是什么原因造成的?
我在网上查了一下,仍然找不到任何有用的东西。

在你的工作中,尝试添加一个
lsof/home/jenkins/.gitconfig
:目标是检查是否有一个PID(进程ID)可以保留该文件的句柄

这可以解释从Jenkins运行时出现的错误消息。
Jenkins设置为do通常会定期锁定该文件