Jenkins执行脚本权限问题
2022-07-20 本文已影响0人
CodeYang

解决:
在/etc/sudoers 末尾新增
#1.编辑/etc/sudoers
vim /etc/sudoers
jenkins ALL=(ALL) NOPASSWD: ALL #末尾新增
#2.重启Jenkins
systemctl restart jenkins
在/etc/sudoers 末尾新增
#1.编辑/etc/sudoers
vim /etc/sudoers
jenkins ALL=(ALL) NOPASSWD: ALL #末尾新增
#2.重启Jenkins
systemctl restart jenkins