1.将jenkins账号分别加入到root组中 gpasswd -a root jenkins
2.修改/etc/sysconfig/jenkins文件中,
# user id to be invoked as (otherwise will run as root; not wise!)
JENKINS_USER=root
JENKINS_GROUP=root 可以修改为root权限运行
3.重启Jenkins service Jenkins restart
1.将jenkins账号分别加入到root组中 gpasswd -a root jenkins
2.修改/etc/sysconfig/jenkins文件中,
# user id to be invoked as (otherwise will run as root; not wise!)
JENKINS_USER=root
JENKINS_GROUP=root 可以修改为root权限运行
3.重启Jenkins service Jenkins restart