Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roginluo
Jenkins
提交
fa47981c
J
Jenkins
项目概览
roginluo
/
Jenkins
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
Jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fa47981c
编写于
6月 14, 2013
作者:
J
Jesse Glick
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FIXED JENKINS-18356] Restored deprecated AbstractProject.doBuild{,WithParameters} overloads.
上级
26b1362d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
2 deletion
+22
-2
changelog.html
changelog.html
+3
-0
core/src/main/java/hudson/model/AbstractProject.java
core/src/main/java/hudson/model/AbstractProject.java
+13
-1
core/src/main/java/hudson/model/ParametersDefinitionProperty.java
.../main/java/hudson/model/ParametersDefinitionProperty.java
+6
-1
未找到文件。
changelog.html
浏览文件 @
fa47981c
...
...
@@ -58,6 +58,9 @@ Upcoming changes</a>
<li
class=
bug
>
“Build Now” link did not work for multijobs.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-16974"
>
issue 16974
</a>
)
<li
class=
'major bug'
>
Fixed API incompatibility since 1.489.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-18356"
>
issue 18356
</a>
)
<li
class=
bug
>
“Projects tied to slave” shows unrelated Maven module jobs.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-17451"
>
issue 17451
</a>
)
...
...
core/src/main/java/hudson/model/AbstractProject.java
浏览文件 @
fa47981c
...
...
@@ -1812,6 +1812,12 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
rsp
.
sendRedirect
(
"."
);
}
/** @deprecated use {@link #doBuild(StaplerRequest, StaplerResponse, TimeDuration)} */
@Deprecated
public
void
doBuild
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
doBuild
(
req
,
rsp
,
TimeDuration
.
fromString
(
req
.
getParameter
(
"delay"
)));
}
/**
* Computes the build cause, using RemoteCause or UserCause as appropriate.
*/
...
...
@@ -1830,7 +1836,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
/**
* Computes the delay by taking the default value and the override in the request parameter into the account.
*
* @deprecated as of 1.48
8
* @deprecated as of 1.48
9
* Inject {@link TimeDuration}.
*/
public
int
getDelay
(
StaplerRequest
req
)
throws
ServletException
{
...
...
@@ -1863,6 +1869,12 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
}
/** @deprecated use {@link #doBuildWithParameters(StaplerRequest, StaplerResponse, TimeDuration)} */
@Deprecated
public
void
doBuildWithParameters
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
doBuildWithParameters
(
req
,
rsp
,
TimeDuration
.
fromString
(
req
.
getParameter
(
"delay"
)));
}
/**
* Schedules a new SCM polling command.
*/
...
...
core/src/main/java/hudson/model/ParametersDefinitionProperty.java
浏览文件 @
fa47981c
...
...
@@ -47,6 +47,7 @@ import org.kohsuke.stapler.export.Exported;
import
org.kohsuke.stapler.export.ExportedBean
;
import
hudson.Extension
;
import
javax.annotation.CheckForNull
;
import
org.kohsuke.stapler.export.Flavor
;
import
static
javax
.
servlet
.
http
.
HttpServletResponse
.
SC_CREATED
;
...
...
@@ -105,6 +106,8 @@ public class ParametersDefinitionProperty extends JobProperty<AbstractProject<?,
return
(
AbstractProject
<?,
?>)
owner
;
}
/** @deprecated use {@link #_doBuild(StaplerRequest, StaplerResponse, TimeDuration)} */
@Deprecated
public
void
_doBuild
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
_doBuild
(
req
,
rsp
,
TimeDuration
.
fromString
(
req
.
getParameter
(
"delay"
)));
}
...
...
@@ -144,11 +147,13 @@ public class ParametersDefinitionProperty extends JobProperty<AbstractProject<?,
rsp
.
sendRedirect
(
"."
);
}
/** @deprecated use {@link #buildWithParameters(StaplerRequest, StaplerResponse, TimeDuration)} */
@Deprecated
public
void
buildWithParameters
(
StaplerRequest
req
,
StaplerResponse
rsp
)
throws
IOException
,
ServletException
{
buildWithParameters
(
req
,
rsp
,
TimeDuration
.
fromString
(
req
.
getParameter
(
"delay"
)));
}
public
void
buildWithParameters
(
StaplerRequest
req
,
StaplerResponse
rsp
,
TimeDuration
delay
)
throws
IOException
,
ServletException
{
public
void
buildWithParameters
(
StaplerRequest
req
,
StaplerResponse
rsp
,
@CheckForNull
TimeDuration
delay
)
throws
IOException
,
ServletException
{
List
<
ParameterValue
>
values
=
new
ArrayList
<
ParameterValue
>();
for
(
ParameterDefinition
d:
parameterDefinitions
)
{
ParameterValue
value
=
d
.
createValue
(
req
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录