Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
536f6a10
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,发现更多精彩内容 >>
提交
536f6a10
编写于
2月 14, 2014
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:jenkinsci/jenkins
上级
2e1d9f28
8901dbe4
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
36 addition
and
14 deletion
+36
-14
cli/src/main/java/hudson/cli/CLI.java
cli/src/main/java/hudson/cli/CLI.java
+1
-1
core/src/main/java/hudson/model/AbstractItem.java
core/src/main/java/hudson/model/AbstractItem.java
+1
-1
core/src/main/java/hudson/model/View.java
core/src/main/java/hudson/model/View.java
+1
-1
core/src/main/java/hudson/tasks/junit/TestResultAction.java
core/src/main/java/hudson/tasks/junit/TestResultAction.java
+10
-9
core/src/main/resources/lib/layout/ajax.jelly
core/src/main/resources/lib/layout/ajax.jelly
+10
-2
test/src/test/java/hudson/tasks/junit/CaseResultTest.java
test/src/test/java/hudson/tasks/junit/CaseResultTest.java
+13
-0
未找到文件。
cli/src/main/java/hudson/cli/CLI.java
浏览文件 @
536f6a10
...
...
@@ -261,7 +261,7 @@ public class CLI {
/**
* If the server advertises CLI endpoint, returns its location.
*/
pr
ivate
CliPort
getCliTcpPort
(
String
url
)
throws
IOException
{
pr
otected
CliPort
getCliTcpPort
(
String
url
)
throws
IOException
{
URL
_url
=
new
URL
(
url
);
if
(
_url
.
getHost
()==
null
||
_url
.
getHost
().
length
()==
0
)
{
throw
new
IOException
(
"Invalid URL: "
+
url
);
...
...
core/src/main/java/hudson/model/AbstractItem.java
浏览文件 @
536f6a10
...
...
@@ -368,7 +368,7 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
/**
* Called right after when a {@link Item} is loaded from disk.
* This is an opporunity to do a post load processing.
* This is an oppor
t
unity to do a post load processing.
*/
public
void
onLoad
(
ItemGroup
<?
extends
Item
>
parent
,
String
name
)
throws
IOException
{
this
.
parent
=
parent
;
...
...
core/src/main/java/hudson/model/View.java
浏览文件 @
536f6a10
...
...
@@ -114,7 +114,7 @@ import org.kohsuke.accmod.restrictions.NoExternalUse;
* This is an extension point in Hudson, allowing different kind of
* rendering to be added as plugins.
*
* <h2>Note for implement
o
rs</h2>
* <h2>Note for implement
e
rs</h2>
* <ul>
* <li>
* {@link View} subtypes need the <tt>newViewDetail.jelly</tt> page,
...
...
core/src/main/java/hudson/tasks/junit/TestResultAction.java
浏览文件 @
536f6a10
...
...
@@ -162,18 +162,19 @@ public class TestResultAction extends AbstractTestResultAction<TestResultAction>
public
Object
getTarget
()
{
return
getResult
();
}
public
List
<
TestAction
>
getActions
(
TestObject
object
)
{
List
<
TestAction
>
result
=
new
ArrayList
<
TestAction
>();
// Added check for null testData to avoid NPE from issue 4257.
if
(
testData
!=
null
)
{
for
(
Data
data
:
testData
)
{
result
.
addAll
(
data
.
getTestAction
(
object
));
List
<
TestAction
>
result
=
new
ArrayList
<
TestAction
>();
// Added check for null testData to avoid NPE from issue 4257.
if
(
testData
!=
null
)
{
for
(
Data
data
:
testData
)
for
(
TestAction
ta
:
data
.
getTestAction
(
object
))
if
(
ta
!=
null
)
result
.
add
(
ta
);
}
return
Collections
.
unmodifiableList
(
result
);
}
return
Collections
.
unmodifiableList
(
result
);
}
public
void
setData
(
List
<
Data
>
testData
)
{
this
.
testData
=
testData
;
}
...
...
core/src/main/resources/lib/layout/ajax.jelly
浏览文件 @
536f6a10
...
...
@@ -34,15 +34,23 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form" xmlns:p="/lib/hudson/project">
<st:documentation>
Sets up the same 'global' variables that the l:layout tag does for content loaded by AJAX scripts.
<st:attribute name="contentType">
Content-type of the response page. This will be ignored if this tag is encountered while
evaluating a page that has called l:layout tag.
</st:attribute>
</st:documentation>
<j:choose>
<j:when test="${rootURL!=null}">
<!-- no envelope needed, since this is called during full HTML rendering. -->
<!-- no envelope needed, since this is called during full HTML rendering.
Don't overwrite content-type either
-->
<d:invokeBody/>
</j:when>
<j:otherwise>
<!-- called to generate partial HTML. set up HTML headers and etc -->
<!-- copied from layout.jelly -->
<st:contentType value="
text/html;charset=UTF-8
" />
<st:contentType value="
${attrs.contentType?:'text/html;charset=UTF-8'}
" />
<j:new var="h" className="hudson.Functions" /><!-- instead of JSP functions -->
${h.initPageVariables(context)}
<j:set var="ajax" value="true"/>
...
...
test/src/test/java/hudson/tasks/junit/CaseResultTest.java
浏览文件 @
536f6a10
...
...
@@ -181,6 +181,19 @@ public class CaseResultTest extends HudsonTestCase {
assertTrue
(
"Should have found 0 elements, but found "
+
found
,
found
==
0
);
}
/**
* Makes sure the summary page remains text/plain (see commit 7089a81 in JENKINS-1544) but
* the index page must be in text/html.
*/
@Bug
(
21261
)
public
void
testContentType
()
throws
Exception
{
configureTestBuild
(
"foo"
);
WebClient
wc
=
createWebClient
();
wc
.
goTo
(
"job/foo/1/testReport/org.twia.vendor/VendorManagerTest/testCreateAdjustingFirm/"
,
"text/html"
);
wc
.
goTo
(
"job/foo/1/testReport/org.twia.vendor/VendorManagerTest/testCreateAdjustingFirm/summary"
,
"text/plain"
);
}
private
FreeStyleBuild
configureTestBuild
(
String
projectName
)
throws
Exception
{
FreeStyleProject
p
=
projectName
==
null
?
createFreeStyleProject
()
:
createFreeStyleProject
(
projectName
);
p
.
getBuildersList
().
add
(
new
TestBuilder
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录