Jenkins “Build Triggers” shows UTC instead of local or server timezoneHow do I check the build status of a Jenkins build from the command line?How to make Jenkins CI use Local time instead of UTC on debian squeezeMaven interfering with Jenkins post build scriptTomCat Page Instead of JenkinsJenkins build fails every odd buildjenkins build error : No such file or directoryJenkins Build Failing with limited error outputJenkins build happening on master instead of slaveJenkins Build on Workspace Change
Greeting with "Ho"
Find the C-factor of a vote
Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)
Why is it recommended to mix yogurt starter with a small amount of milk before adding to the entire batch?
Can someone suggest a path to study Mordell-Weil theorem for someone studying on their own?
How long would it take to cross the Channel in 1890's?
How large would a mega structure have to be to host 1 billion people indefinitely?
Are all instances of trolls turning to stone ultimately references back to Tolkien?
Why does the Saturn V have standalone inter-stage rings?
Parameterize chained calls to a utility program in Bash
Can White Castle?
How does a blind passenger not die, if driver becomes unconscious
Drawing people along with x and y axis
Explain why a line can never intersect a plane in exactly two points.
Has there been any indication at all that further negotiation between the UK and EU is possible?
What's currently blocking the construction of the wall between Mexico and the US?
Is "Busen" just the area between the breasts?
Loss of power when I remove item from the outlet
How does the spell Remove Curse interact with a Sword of Vengeance?
Methodology: Writing unit tests for another developer
What is the meaning of "понаехать"?
Dates on degrees don’t make sense – will people care?
Can you find x?
Is this proposal by U.S. presidential candidate Pete Buttigieg to change the composition of the Supreme Court constitutional?
Jenkins “Build Triggers” shows UTC instead of local or server timezone
How do I check the build status of a Jenkins build from the command line?How to make Jenkins CI use Local time instead of UTC on debian squeezeMaven interfering with Jenkins post build scriptTomCat Page Instead of JenkinsJenkins build fails every odd buildjenkins build error : No such file or directoryJenkins Build Failing with limited error outputJenkins build happening on master instead of slaveJenkins Build on Workspace Change
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
When configuring jobs to run periodically, Jenkins is showing UTC time. I expect Jenkins to show the timezone as America/New_York.
Jenkins version 2.121.2 is configured to run using timezone America/New_York as described in this article https://wiki.jenkins.io/display/JENKINS/Change+time+zone
I've confirmed this by looking at the java process and I can see the option passed
jenkins 1706 7.1 79.5 16210100 12923272 ? Ssl May11 8541:26 /etc/alternatives/java -XX:+UseG1GC -Xms1g -Xmx12g -XX:MaxMetaspaceSize=512m -Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true -Djava.awt.headless=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -DJENKINS_HOME=/var/lib/jenkins -jar -Dcb.distributable.name=RedHat / Fedora RPM -Dcb.distributable.commit_sha=888f01a54c12cfae5c66ec27fd4f2a7346097997 /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --httpListenAddress=127.0.0.1 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
I can also see the option in http://server/systemInfo
And the user.timezone is also set to America/New_York
The server is configured to use America/New_York timezone as well:
# ls -lAF /etc/localtime
lrwxrwxrwx. 1 root root 38 Jan 7 2018 /etc/localtime -> ../usr/share/zoneinfo/America/New_York
# date
Thu Aug 2 15:01:36 EDT 2018
idk if it matters, but Jenkins is using OpenJDK:
/etc/alternatives/java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
I expect that the 'Schedule' box would show the server timezone or my timezone, not UTC.
jenkins
add a comment |
When configuring jobs to run periodically, Jenkins is showing UTC time. I expect Jenkins to show the timezone as America/New_York.
Jenkins version 2.121.2 is configured to run using timezone America/New_York as described in this article https://wiki.jenkins.io/display/JENKINS/Change+time+zone
I've confirmed this by looking at the java process and I can see the option passed
jenkins 1706 7.1 79.5 16210100 12923272 ? Ssl May11 8541:26 /etc/alternatives/java -XX:+UseG1GC -Xms1g -Xmx12g -XX:MaxMetaspaceSize=512m -Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true -Djava.awt.headless=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -DJENKINS_HOME=/var/lib/jenkins -jar -Dcb.distributable.name=RedHat / Fedora RPM -Dcb.distributable.commit_sha=888f01a54c12cfae5c66ec27fd4f2a7346097997 /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --httpListenAddress=127.0.0.1 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
I can also see the option in http://server/systemInfo
And the user.timezone is also set to America/New_York
The server is configured to use America/New_York timezone as well:
# ls -lAF /etc/localtime
lrwxrwxrwx. 1 root root 38 Jan 7 2018 /etc/localtime -> ../usr/share/zoneinfo/America/New_York
# date
Thu Aug 2 15:01:36 EDT 2018
idk if it matters, but Jenkins is using OpenJDK:
/etc/alternatives/java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
I expect that the 'Schedule' box would show the server timezone or my timezone, not UTC.
jenkins
I have the exact same situation -- was this ever answered or did you figure out the solution yourself? This is an old question so I'm sure you either figured it out or just gave up, but I'd be interested in the end of the story either way.
– JoeB
May 30 at 3:10
Didn't figure this one out. It still shows UTC in the web UI.
– Mike Marseglia
Jun 4 at 15:54
add a comment |
When configuring jobs to run periodically, Jenkins is showing UTC time. I expect Jenkins to show the timezone as America/New_York.
Jenkins version 2.121.2 is configured to run using timezone America/New_York as described in this article https://wiki.jenkins.io/display/JENKINS/Change+time+zone
I've confirmed this by looking at the java process and I can see the option passed
jenkins 1706 7.1 79.5 16210100 12923272 ? Ssl May11 8541:26 /etc/alternatives/java -XX:+UseG1GC -Xms1g -Xmx12g -XX:MaxMetaspaceSize=512m -Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true -Djava.awt.headless=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -DJENKINS_HOME=/var/lib/jenkins -jar -Dcb.distributable.name=RedHat / Fedora RPM -Dcb.distributable.commit_sha=888f01a54c12cfae5c66ec27fd4f2a7346097997 /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --httpListenAddress=127.0.0.1 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
I can also see the option in http://server/systemInfo
And the user.timezone is also set to America/New_York
The server is configured to use America/New_York timezone as well:
# ls -lAF /etc/localtime
lrwxrwxrwx. 1 root root 38 Jan 7 2018 /etc/localtime -> ../usr/share/zoneinfo/America/New_York
# date
Thu Aug 2 15:01:36 EDT 2018
idk if it matters, but Jenkins is using OpenJDK:
/etc/alternatives/java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
I expect that the 'Schedule' box would show the server timezone or my timezone, not UTC.
jenkins
When configuring jobs to run periodically, Jenkins is showing UTC time. I expect Jenkins to show the timezone as America/New_York.
Jenkins version 2.121.2 is configured to run using timezone America/New_York as described in this article https://wiki.jenkins.io/display/JENKINS/Change+time+zone
I've confirmed this by looking at the java process and I can see the option passed
jenkins 1706 7.1 79.5 16210100 12923272 ? Ssl May11 8541:26 /etc/alternatives/java -XX:+UseG1GC -Xms1g -Xmx12g -XX:MaxMetaspaceSize=512m -Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true -Djava.awt.headless=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -DJENKINS_HOME=/var/lib/jenkins -jar -Dcb.distributable.name=RedHat / Fedora RPM -Dcb.distributable.commit_sha=888f01a54c12cfae5c66ec27fd4f2a7346097997 /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --httpListenAddress=127.0.0.1 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
I can also see the option in http://server/systemInfo
And the user.timezone is also set to America/New_York
The server is configured to use America/New_York timezone as well:
# ls -lAF /etc/localtime
lrwxrwxrwx. 1 root root 38 Jan 7 2018 /etc/localtime -> ../usr/share/zoneinfo/America/New_York
# date
Thu Aug 2 15:01:36 EDT 2018
idk if it matters, but Jenkins is using OpenJDK:
/etc/alternatives/java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
I expect that the 'Schedule' box would show the server timezone or my timezone, not UTC.
jenkins
jenkins
asked Aug 2 '18 at 19:08
Mike MarsegliaMike Marseglia
668615
668615
I have the exact same situation -- was this ever answered or did you figure out the solution yourself? This is an old question so I'm sure you either figured it out or just gave up, but I'd be interested in the end of the story either way.
– JoeB
May 30 at 3:10
Didn't figure this one out. It still shows UTC in the web UI.
– Mike Marseglia
Jun 4 at 15:54
add a comment |
I have the exact same situation -- was this ever answered or did you figure out the solution yourself? This is an old question so I'm sure you either figured it out or just gave up, but I'd be interested in the end of the story either way.
– JoeB
May 30 at 3:10
Didn't figure this one out. It still shows UTC in the web UI.
– Mike Marseglia
Jun 4 at 15:54
I have the exact same situation -- was this ever answered or did you figure out the solution yourself? This is an old question so I'm sure you either figured it out or just gave up, but I'd be interested in the end of the story either way.
– JoeB
May 30 at 3:10
I have the exact same situation -- was this ever answered or did you figure out the solution yourself? This is an old question so I'm sure you either figured it out or just gave up, but I'd be interested in the end of the story either way.
– JoeB
May 30 at 3:10
Didn't figure this one out. It still shows UTC in the web UI.
– Mike Marseglia
Jun 4 at 15:54
Didn't figure this one out. It still shows UTC in the web UI.
– Mike Marseglia
Jun 4 at 15:54
add a comment |
1 Answer
1
active
oldest
votes
I got this working finally by setting BOTH (it didnt work without the user one):
-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York
-Duser.timezone=America/New_York
Since I run in Docker, my full command line (maybe useful to someone) is here:
docker run --name=jenkins -td -p 5000:5000 -p 80:8080 -v $HOME/jenkins_home:/var/jenkins_home -e "JAVA_OPTS=-server -XX:+AlwaysPreTouch -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Xms5120m -Xmx10240m -Dhudson.model.ParametersAction.keepUndefinedParameters=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -Duser.timezone=America/New_York" jenkins/jenkins:2.164.3
This takes into some performance tuning stuff found at https://jenkins.io/blog/2016/11/21/gc-tuning/
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f924685%2fjenkins-build-triggers-shows-utc-instead-of-local-or-server-timezone%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I got this working finally by setting BOTH (it didnt work without the user one):
-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York
-Duser.timezone=America/New_York
Since I run in Docker, my full command line (maybe useful to someone) is here:
docker run --name=jenkins -td -p 5000:5000 -p 80:8080 -v $HOME/jenkins_home:/var/jenkins_home -e "JAVA_OPTS=-server -XX:+AlwaysPreTouch -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Xms5120m -Xmx10240m -Dhudson.model.ParametersAction.keepUndefinedParameters=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -Duser.timezone=America/New_York" jenkins/jenkins:2.164.3
This takes into some performance tuning stuff found at https://jenkins.io/blog/2016/11/21/gc-tuning/
add a comment |
I got this working finally by setting BOTH (it didnt work without the user one):
-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York
-Duser.timezone=America/New_York
Since I run in Docker, my full command line (maybe useful to someone) is here:
docker run --name=jenkins -td -p 5000:5000 -p 80:8080 -v $HOME/jenkins_home:/var/jenkins_home -e "JAVA_OPTS=-server -XX:+AlwaysPreTouch -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Xms5120m -Xmx10240m -Dhudson.model.ParametersAction.keepUndefinedParameters=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -Duser.timezone=America/New_York" jenkins/jenkins:2.164.3
This takes into some performance tuning stuff found at https://jenkins.io/blog/2016/11/21/gc-tuning/
add a comment |
I got this working finally by setting BOTH (it didnt work without the user one):
-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York
-Duser.timezone=America/New_York
Since I run in Docker, my full command line (maybe useful to someone) is here:
docker run --name=jenkins -td -p 5000:5000 -p 80:8080 -v $HOME/jenkins_home:/var/jenkins_home -e "JAVA_OPTS=-server -XX:+AlwaysPreTouch -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Xms5120m -Xmx10240m -Dhudson.model.ParametersAction.keepUndefinedParameters=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -Duser.timezone=America/New_York" jenkins/jenkins:2.164.3
This takes into some performance tuning stuff found at https://jenkins.io/blog/2016/11/21/gc-tuning/
I got this working finally by setting BOTH (it didnt work without the user one):
-Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York
-Duser.timezone=America/New_York
Since I run in Docker, my full command line (maybe useful to someone) is here:
docker run --name=jenkins -td -p 5000:5000 -p 80:8080 -v $HOME/jenkins_home:/var/jenkins_home -e "JAVA_OPTS=-server -XX:+AlwaysPreTouch -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1 -Xms5120m -Xmx10240m -Dhudson.model.ParametersAction.keepUndefinedParameters=true -Dorg.apache.commons.jelly.tags.fmt.timeZone=America/New_York -Duser.timezone=America/New_York" jenkins/jenkins:2.164.3
This takes into some performance tuning stuff found at https://jenkins.io/blog/2016/11/21/gc-tuning/
answered Jun 5 at 19:00
JoeBJoeB
16111
16111
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f924685%2fjenkins-build-triggers-shows-utc-instead-of-local-or-server-timezone%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I have the exact same situation -- was this ever answered or did you figure out the solution yourself? This is an old question so I'm sure you either figured it out or just gave up, but I'd be interested in the end of the story either way.
– JoeB
May 30 at 3:10
Didn't figure this one out. It still shows UTC in the web UI.
– Mike Marseglia
Jun 4 at 15:54