jenkins 禁用脚本安全性

确保安装了插件Permissive Script Security

 

修改启动Jenkins启动参数

vi /usr/lib/systemd/system/jenkins.service

 

将参数:
Environment="JAVA_OPTS=-Djava.awt.headless=true"

修改为:

Environment="JAVA_OPTS=-Djava.awt.headless=true -Dpermissive-script-security.enabled=true"

 

加载配置

systemctl daemon-reload

 

重启Jenkins

systemctl restart jenkins

 

posted @ 2024-08-18 11:09  肖祥  阅读(22)  评论(0编辑  收藏  举报