如何更改詹金斯的时区? [英] How to change the time zone in Jenkins?

查看:76
本文介绍了如何更改詹金斯的时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望更改詹金斯的时区.

I wish to change the time zone of the Jenkins.

我更改了Jenkins安装服务器的时区,但是Jenkins UI显示了不同的时间.

I have changed the time zone of the Jenkins installed server, but the Jenkins UI shows the different time.

我需要为Jenkins UI设置PST时间.我该怎么办?

I need to set the PST time for Jenkins UI. How can I do it?

推荐答案

请参见 https://wiki.jenkins-ci.org/display/JENKINS/Change+time+zone . Jenkins应该遵守为Java设置的时区.但是您可以通过添加以下内容来启动Jenkins命令来强制Jenkins使用特定时区:

See https://wiki.jenkins-ci.org/display/JENKINS/Change+time+zone. Jenkins should respect the timezone set for java. But you can force Jenkins to use a specific timezone by adding the following to start command of Jenkins:

java -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/Los_Angeles

这应将您的时区设置为PST.

This should set your timezone to PST.

这篇关于如何更改詹金斯的时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆