Skip to content

Commit

Permalink
[JENKINS-9283] - Document timezones support in help pages
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev authored and daniel-beck committed Jun 26, 2017
1 parent 78a42d5 commit b171bc6
Showing 1 changed file with 27 additions and 0 deletions.
Expand Up @@ -80,4 +80,31 @@
# once a day on the 1st and 15th of every month except December
H H 1,15 1-11 *
</pre>
<p>
<b>Timezone specification</b>. <br/>
Periodic tasks are normally executed at the scheduled time in the timezone of
the Jenkins master JVM (currently Central European Time).
This behaviour can be <b>optionally</b> changed by specifying an alternative timezone in the
first line of the field.
</p>
<ul>
<li>Timezone specification should contain the &quot;TZ=$(timezoneID)&quot; string</li>
<li>If a timezone is not specified or if it is specified incorrectly, the default Jenkins JVM timezone will be used</li>
<li>Th supports all timezones returned by
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html#getAvailableIDs()">
java.util.TimeZone::getAvailableIDs()
</a> on the Jenkins server JVM
</li>
<li>Examples: EST, Etc/GMT+5, US/Pacific, America/Indiana/Petersburg, etc.</li>
</ul>
<p>
Example:
</p>
<pre>
TZ=Europe/London
# This job needs to be run in the morning, London time
H 8 * * *
# Butlers do not have a five o'clock, so we run the job again
H(0-30) 17 * * *
</pre>
</div>

0 comments on commit b171bc6

Please sign in to comment.