1. 临时修改

在【系统管理】-【脚本命令行】里运行
System.setProperty(‘org.apache.commons.jelly.tags.fmt.timeZone’, ‘Asia/Shanghai’)

2. 永久修改

  1. vim /etc/sysconfig/jenkins
  2. # 修改 JENKINS_JAVA_OPTIONS
  3. # JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
  4. JENKINS_JAVA_OPTIONS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai"
  5. # 重启jenkins
  6. systemctl restart jenkins