1. 临时修改
在【系统管理】-【脚本命令行】里运行
System.setProperty(‘org.apache.commons.jelly.tags.fmt.timeZone’, ‘Asia/Shanghai’)
2. 永久修改
vim /etc/sysconfig/jenkins
# 修改 JENKINS_JAVA_OPTIONS
# JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
JENKINS_JAVA_OPTIONS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai"
# 重启jenkins
systemctl restart jenkins