Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
jenkins
提交
0b8917b3
J
jenkins
项目概览
野花太放肆
/
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,发现更多精彩内容 >>
提交
0b8917b3
编写于
6月 25, 2013
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed test regressions
上级
afcd081b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
16 deletion
+15
-16
core/src/main/java/hudson/model/AbstractProject.java
core/src/main/java/hudson/model/AbstractProject.java
+2
-3
test/src/test/java/hudson/model/QueueTest.java
test/src/test/java/hudson/model/QueueTest.java
+10
-10
test/src/test/java/hudson/triggers/SCMTriggerTest.java
test/src/test/java/hudson/triggers/SCMTriggerTest.java
+3
-3
未找到文件。
core/src/main/java/hudson/model/AbstractProject.java
浏览文件 @
0b8917b3
...
...
@@ -855,9 +855,8 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* Schedules a build of this project.
*
* @return
* true if the project is actually added to the queue.
* false if the queue contained it and therefore the add()
* was noop
* true if the project is added to the queue.
* false if the task was rejected from the queue (such as when the system is being shut down.)
*/
public
boolean
scheduleBuild
(
Cause
c
)
{
return
scheduleBuild
(
getQuietPeriod
(),
c
);
...
...
test/src/test/java/hudson/model/QueueTest.java
浏览文件 @
0b8917b3
...
...
@@ -249,16 +249,16 @@ public class QueueTest extends HudsonTestCase {
// Schedule a new build, and trigger it many ways while it sits in queue
Future
<
FreeStyleBuild
>
fb
=
project
.
scheduleBuild2
(
0
,
new
UserIdCause
());
assertNotNull
(
fb
);
assert
Fals
e
(
project
.
scheduleBuild
(
new
SCMTriggerCause
(
""
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
UserIdCause
()));
assert
Fals
e
(
project
.
scheduleBuild
(
new
TimerTriggerCause
()));
assert
Fals
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"1.2.3.4"
,
"test"
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"4.3.2.1"
,
"test"
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
SCMTriggerCause
(
""
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"1.2.3.4"
,
"test"
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"1.2.3.4"
,
"foo"
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
SCMTriggerCause
(
""
)));
assert
Fals
e
(
project
.
scheduleBuild
(
new
TimerTriggerCause
()));
assert
Tru
e
(
project
.
scheduleBuild
(
new
SCMTriggerCause
(
""
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
UserIdCause
()));
assert
Tru
e
(
project
.
scheduleBuild
(
new
TimerTriggerCause
()));
assert
Tru
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"1.2.3.4"
,
"test"
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"4.3.2.1"
,
"test"
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
SCMTriggerCause
(
""
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"1.2.3.4"
,
"test"
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
RemoteCause
(
"1.2.3.4"
,
"foo"
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
SCMTriggerCause
(
""
)));
assert
Tru
e
(
project
.
scheduleBuild
(
new
TimerTriggerCause
()));
// Wait for 2nd build to finish
buildShouldComplete
.
signal
();
...
...
test/src/test/java/hudson/triggers/SCMTriggerTest.java
浏览文件 @
0b8917b3
...
...
@@ -124,9 +124,9 @@ public class SCMTriggerTest extends HudsonTestCase {
// Schedule a new build, and trigger it many ways while it sits in queue
Future
<
FreeStyleBuild
>
fb
=
p
.
scheduleBuild2
(
0
,
new
UserCause
());
assertNotNull
(
fb
);
assert
Fals
e
(
p
.
scheduleBuild
(
new
SCMTriggerCause
(
"First poll"
)));
assert
Fals
e
(
p
.
scheduleBuild
(
new
SCMTriggerCause
(
"Second poll"
)));
assert
Fals
e
(
p
.
scheduleBuild
(
new
SCMTriggerCause
(
"Third poll"
)));
assert
Tru
e
(
p
.
scheduleBuild
(
new
SCMTriggerCause
(
"First poll"
)));
assert
Tru
e
(
p
.
scheduleBuild
(
new
SCMTriggerCause
(
"Second poll"
)));
assert
Tru
e
(
p
.
scheduleBuild
(
new
SCMTriggerCause
(
"Third poll"
)));
// Wait for 2nd build to finish
buildShouldComplete
.
signal
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录