Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
jenkins
提交
769bd819
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,发现更多精彩内容 >>
提交
769bd819
编写于
3月 28, 2014
作者:
J
Jesse Glick
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1168 from jglick/Trigger-DependencyDeclarer-JENKINS-22397
[JENKINS-22397] Allow a Trigger to be a DependencyDeclarer
上级
f97b5b33
63ece768
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
9 deletion
+18
-9
changelog.html
changelog.html
+3
-0
core/src/main/java/hudson/matrix/MatrixProject.java
core/src/main/java/hudson/matrix/MatrixProject.java
+2
-1
core/src/main/java/hudson/model/AbstractProject.java
core/src/main/java/hudson/model/AbstractProject.java
+4
-2
core/src/main/java/hudson/model/Project.java
core/src/main/java/hudson/model/Project.java
+2
-1
core/src/main/java/jenkins/model/DependencyDeclarer.java
core/src/main/java/jenkins/model/DependencyDeclarer.java
+7
-5
未找到文件。
changelog.html
浏览文件 @
769bd819
...
...
@@ -63,6 +63,9 @@ Upcoming changes</a>
<li
class=
bug
>
<code>
NoSuchMethodError: hudson.model.BuildAuthorizationToken.checkPermission(…)
</code>
from Build Token Root plugin since 1.556.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-22382"
>
issue 22382
</a>
)
<li
class=
rfe
>
Allow a
<code>
Trigger
</code>
to be a
<code>
DependencyDeclarer
</code>
.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-22397"
>
issue 22397
</a>
)
<li
class=
bug
>
Fixed a slow down in resource loading caused by fix to JENKINS-18677.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-21579"
>
issue 21579
</a>
)
...
...
core/src/main/java/hudson/matrix/MatrixProject.java
浏览文件 @
769bd819
...
...
@@ -802,7 +802,8 @@ public class MatrixProject extends AbstractProject<MatrixProject,MatrixBuild> im
return
false
;
}
protected
void
buildDependencyGraph
(
DependencyGraph
graph
)
{
@Override
protected
void
buildDependencyGraph
(
DependencyGraph
graph
)
{
super
.
buildDependencyGraph
(
graph
);
publishers
.
buildDependencyGraph
(
this
,
graph
);
builders
.
buildDependencyGraph
(
this
,
graph
);
buildWrappers
.
buildDependencyGraph
(
this
,
graph
);
...
...
core/src/main/java/hudson/model/AbstractProject.java
浏览文件 @
769bd819
...
...
@@ -1712,9 +1712,11 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
/**
* Builds the dependency graph.
*
@see DependencyGraph
*
Since 1.558, not abstract and by default includes dependencies contributed by {@link #triggers()}.
*/
protected
abstract
void
buildDependencyGraph
(
DependencyGraph
graph
);
protected
void
buildDependencyGraph
(
DependencyGraph
graph
)
{
triggers
().
buildDependencyGraph
(
this
,
graph
);
}
@Override
protected
SearchIndexBuilder
makeSearchIndex
()
{
...
...
core/src/main/java/hudson/model/Project.java
浏览文件 @
769bd819
...
...
@@ -175,7 +175,8 @@ public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
return
null
;
}
protected
void
buildDependencyGraph
(
DependencyGraph
graph
)
{
@Override
protected
void
buildDependencyGraph
(
DependencyGraph
graph
)
{
super
.
buildDependencyGraph
(
graph
);
getPublishersList
().
buildDependencyGraph
(
this
,
graph
);
getBuildersList
().
buildDependencyGraph
(
this
,
graph
);
getBuildWrappersList
().
buildDependencyGraph
(
this
,
graph
);
...
...
core/src/main/java/jenkins/model/DependencyDeclarer.java
浏览文件 @
769bd819
...
...
@@ -25,18 +25,20 @@ package jenkins.model;
import
hudson.model.AbstractProject
;
import
hudson.model.DependencyGraph
;
import
hudson.tasks.Build
Step
;
import
hudson.tasks.Build
Wrapper
;
import
hudson.tasks.Builder
;
import
hudson.tasks.Publisher
;
import
hudson.triggers.Trigger
;
import
hudson.util.DescribableList
;
/**
* Marker interface for
those {@link BuildStep}
s that can participate
* Marker interface for
project-associated object
s that can participate
* in the dependency graph computation process.
*
* <p>
* {@link Publisher}s, {@link Builder}s,
and {@link hudson.model.JobProperty
}s
*
can additional implement this method to add additional edges
*
to the dependency graph computation
.
* {@link Publisher}s, {@link Builder}s,
{@link BuildWrapper}s, and {@link Trigger
}s
*
(or whatever {@link DescribableList#buildDependencyGraph} is called on, by {@link AbstractProject#buildDependencyGraph})
*
can implement this interface to add additional edges to the dependency graph
.
*
* @author Nicolas Lalevee
* @author Martin Ficker
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录