Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FIY695
jenkins
提交
ed1c3691
J
jenkins
项目概览
FIY695
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
ed1c3691
编写于
12月 10, 2010
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed help text and reverting the text back to default.
上级
ad27bab4
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
15 addition
and
3 deletion
+15
-3
core/src/main/java/hudson/model/Run.java
core/src/main/java/hudson/model/Run.java
+5
-1
core/src/main/resources/hudson/model/Run/configure.jelly
core/src/main/resources/hudson/model/Run/configure.jelly
+2
-2
war/src/main/webapp/help/run-config/description.html
war/src/main/webapp/help/run-config/description.html
+4
-0
war/src/main/webapp/help/run-config/displayName.html
war/src/main/webapp/help/run-config/displayName.html
+4
-0
未找到文件。
core/src/main/java/hudson/model/Run.java
浏览文件 @
ed1c3691
...
...
@@ -619,6 +619,10 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
return
displayName
!=
null
;
}
/**
* @param value
* Set to null to revert back to the default "#NNN".
*/
public
void
setDisplayName
(
String
value
)
throws
IOException
{
checkPermission
(
UPDATE
);
this
.
displayName
=
value
;
...
...
@@ -1843,7 +1847,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
}
protected
void
submit
(
JSONObject
json
)
throws
IOException
{
setDisplayName
(
json
.
getString
(
"displayName"
));
setDisplayName
(
Util
.
fixEmptyAndTrim
(
json
.
getString
(
"displayName"
)
));
setDescription
(
json
.
getString
(
"description"
));
}
...
...
core/src/main/resources/hudson/model/Run/configure.jelly
浏览文件 @
ed1c3691
...
...
@@ -28,10 +28,10 @@ THE SOFTWARE.
<l:main-panel>
<div class="behavior-loading">${%LOADING}</div>
<f:form method="post" action="configSubmit" name="config">
<f:entry title="${%DisplayName}" help="/help/
project
-config/displayName.html">
<f:entry title="${%DisplayName}" help="/help/
run
-config/displayName.html">
<f:textbox name="displayName" value="${it.hasCustomDisplayName()?it.displayName:''}"/>
</f:entry>
<f:entry title="${%Description}" help="/help/
project
-config/description.html">
<f:entry title="${%Description}" help="/help/
run
-config/description.html">
<f:textarea name="description" value="${it.description}"/>
</f:entry>
...
...
war/src/main/webapp/help/run-config/description.html
0 → 100644
浏览文件 @
ed1c3691
<div>
This description is placed on the build top page so that visitors can
know what this build did. You can use any HTML tags here.
</div>
\ No newline at end of file
war/src/main/webapp/help/run-config/displayName.html
0 → 100644
浏览文件 @
ed1c3691
<div>
If set, this text is used instead of the default "#NNN" to point to this build. Leave this empty
to use the default.
</div>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录