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