修改Jenkins时区
Debian:
vim /etc/defalut/jenkins
JAVA_ARGS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Aisa/Shanghai"
RedHat/CentOS
vim /etc/sysconfig/jenkins
JENKINS_JAVA_OPTIONS="-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai"
如果修改重启后还未生效,将以下配置一并修改:
JENKINS_JAVA_OPTIONS="-Duser.timezone=America/New_York"