Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
9635b724
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9635b724
编写于
6月 26, 2017
作者:
D
Daniel Beck
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add list of supported time zone IDs, rephrase some of the doc
上级
f6176bc1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
22 deletion
+26
-22
core/src/main/java/hudson/scheduler/CronTabList.java
core/src/main/java/hudson/scheduler/CronTabList.java
+1
-1
core/src/main/resources/hudson/triggers/TimerTrigger/help-spec.jelly
...in/resources/hudson/triggers/TimerTrigger/help-spec.jelly
+25
-21
未找到文件。
core/src/main/java/hudson/scheduler/CronTabList.java
浏览文件 @
9635b724
...
...
@@ -110,7 +110,7 @@ public final class CronTabList {
if
(
timezone
!=
null
)
{
LOGGER
.
log
(
Level
.
CONFIG
,
"CRON with timezone {0}"
,
timezone
);
}
else
{
throw
new
ANTLRException
(
"Invalid or unsupported timezone '"
+
li
ne
+
"'"
);
throw
new
ANTLRException
(
"Invalid or unsupported timezone '"
+
timezo
ne
+
"'"
);
}
continue
;
}
...
...
core/src/main/resources/hudson/triggers/TimerTrigger/help-spec.
html
→
core/src/main/resources/hudson/triggers/TimerTrigger/help-spec.
jelly
浏览文件 @
9635b724
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout">
<div>
This field follows the syntax of cron (with minor differences).
Specifically, each line consists of 5 fields separated by TAB or whitespace:
...
...
@@ -80,31 +82,33 @@ H H(9-16)/2 * * 1-5
# once a day on the 1st and 15th of every month except December
H H 1,15 1-11 *
</pre>
<h3>Timezone specification</h3>
<j:invokeStatic className="java.util.TimeZone" method="getDefault" var="currentTimeZone"/>
<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 behavio
ur can be
<b>
optionally
</b>
changed by specifying an alternative timezone in the
the Jenkins master JVM (currently
<strong>${currentTimeZone.getID()}</strong>).
This behavio
r can optionally be
changed by specifying an alternative timezone in the
first line of the field.
Timezone specification starts with <code>TZ=</code>, followed by the ID of a time zone.
</p>
<ul
>
<li>
Timezone specification should contain the
"
TZ=$(timezoneID)
"
string
</li>
<
li>
If a timezone is not specified, 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
>
Complete example of a schedule with a timezone specification:
<
/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
>
<p>
Example
:
The supported timezones depend on the Java runtime Jenkins is running on. The list of supported time zone IDs on this instance is
:
</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>
<j:invokeStatic className="java.util.TimeZone" method="getAvailableIDs" var="timeZones"/>
<ul>
<j:forEach items="${timeZones}" var="timeZone">
<li>${timeZone}</li>
</j:forEach>
</ul>
</div>
</j:jelly>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录