Change Jenkins time zone

修改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"
posted @ 2017-12-29 11:14  Federico  阅读(189)  评论(0编辑  收藏  举报