Jenkins构建报错:The recommended git tool is: NONE,Fetching changes from the remote Git repository

The reason is that the owner of the workspace where the task is located: the owner group is not Jenkins

Solution:

 chown -R jenkins:jenkins /var/lib/jenkins/workspace/工作目录

If you need to give an ordinary user the authority to operate the directory, you can perform the following operations:

setfacl -m u:darion:rwx /var/lib/jenkins/workspace/工作目录

expand:

setfacl命令:能够对个别用户、个别组设置独立的权限。
•常用命令选项
–-m:修改ACL策略
–-x:清除指定的ACL策略
–-b:清除所有已设置的ACL策略
–-R:递归设置ACL策略

Guess you like

Origin blog.csdn.net/weixin_66997758/article/details/129496448