Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FIY695
jenkins
提交
c222acec
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,发现更多精彩内容 >>
提交
c222acec
编写于
12月 02, 2012
作者:
V
Vincent Latombe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[JENKINS-1295] Disable trigger downstream for maven jobs
上级
75bad095
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
25 addition
and
2 deletion
+25
-2
changelog.html
changelog.html
+3
-0
maven-plugin/src/main/java/hudson/maven/MavenModule.java
maven-plugin/src/main/java/hudson/maven/MavenModule.java
+1
-1
maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
+15
-0
maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/configure-entries.jelly
...urces/hudson/maven/MavenModuleSet/configure-entries.jelly
+4
-0
maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/configure-entries_fr.properties
...dson/maven/MavenModuleSet/configure-entries_fr.properties
+2
-1
未找到文件。
changelog.html
浏览文件 @
c222acec
...
...
@@ -60,6 +60,9 @@ Upcoming changes</a>
<li
class=
bug
>
WARNING: Caught exception evaluating: descriptor.getHelpFile(attrs.field). Reason: java.lang.NullPointerException.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-15940"
>
issue 15940
</a>
)
<li
class=
rfe
>
Allows to disable triggering of downstream jobs (for a maven job)
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-1295"
>
issue 1295
</a>
)
</ul>
</div>
<!--=TRUNK-END=-->
...
...
maven-plugin/src/main/java/hudson/maven/MavenModule.java
浏览文件 @
c222acec
...
...
@@ -488,7 +488,7 @@ public class MavenModule extends AbstractMavenProject<MavenModule,MavenBuild> im
src
=
data
.
allModules
.
get
(
winner
);
}
if
(
src
!=
null
)
{
if
(
src
!=
null
&&
!
src
.
getParent
().
isDisableTriggerDownstreamProjects
()
)
{
DependencyGraph
.
Dependency
dep
=
new
MavenModuleDependency
(
nodeOf
(
src
),
nodeOf
(
this
));
if
(!
dep
.
pointsItself
())
graph
.
addDependency
(
dep
);
...
...
maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
浏览文件 @
c222acec
...
...
@@ -265,6 +265,12 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
* @deprecated since 1.484 settings are provided by {@link #globalSettings}
*/
private
String
globalSettingConfigId
;
/**
* Whether to participate in triggering downstream projects.
* @since 1.494
*/
private
boolean
disableTriggerDownstreamProjects
;
/**
* used temporary during maven build to store file path
...
...
@@ -851,6 +857,14 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
prebuilders
.
buildDependencyGraph
(
this
,
graph
);
postbuilders
.
buildDependencyGraph
(
this
,
graph
);
}
public
boolean
isDisableTriggerDownstreamProjects
()
{
return
disableTriggerDownstreamProjects
;
}
public
void
setDisableTriggerDownstreamProjects
(
boolean
disableTriggerDownstreamProjects
)
{
this
.
disableTriggerDownstreamProjects
=
disableTriggerDownstreamProjects
;
}
public
MavenModule
getRootModule
()
{
if
(
rootModule
==
null
)
return
null
;
...
...
@@ -1119,6 +1133,7 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
reporters
.
rebuild
(
req
,
json
,
MavenReporters
.
getConfigurableList
());
publishers
.
rebuildHetero
(
req
,
json
,
Publisher
.
all
(),
"publisher"
);
buildWrappers
.
rebuild
(
req
,
json
,
BuildWrappers
.
getFor
(
this
));
disableTriggerDownstreamProjects
=
req
.
hasParameter
(
"maven.disableTriggerDownstreamProjects"
);
runPostStepsIfResult
=
Result
.
fromString
(
req
.
getParameter
(
"post-steps.runIfResult"
));
prebuilders
.
rebuildHetero
(
req
,
json
,
Builder
.
all
(),
"prebuilder"
);
...
...
maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/configure-entries.jelly
浏览文件 @
c222acec
...
...
@@ -88,6 +88,10 @@ THE SOFTWARE.
title="${%Disable automatic artifact archiving}"
help="/plugin/maven-plugin/archivingDisabled.html"
checked="${it.isArchivingDisabled()}" />
<f:optionalBlock name="maven.disableTriggerDownstreamProjects"
title="${%Disable triggering of downstream projects}"
help="/plugin/maven-plugin/downstreamDisabled.html"
checked="${it.isDisableTriggerDownstreamProjects()}" />
<f:optionalBlock name="maven.perModuleBuild" title="${%Build modules in parallel}" help="/plugin/maven-plugin/aggregator.html"
checked="${!it.aggregatorStyleBuild}" />
<f:optionalBlock name="maven.usePrivateRepository" title="${%Use private Maven repository}" help="/plugin/maven-plugin/private-repository.html"
...
...
maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/configure-entries_fr.properties
浏览文件 @
c222acec
...
...
@@ -44,4 +44,5 @@ Add\ post-build\ step=Ajouter une \u00E9tape post-build
Add\
pre-build\
step
=
Ajouter une
\u
00E9tape pr
\u
00E9-build
Post-Build\
Run\
Criteria
=
Crit
\u
00E8re pour ex
\u
00E9cuter le post-build
Steps\
to\
run\
after\
mvn\
build
=
\u
00C9tapes
\u
00E0 lancer apr
\u
00E8s le build maven
Steps\
to\
run\
before\
mvn\
build
=
\u
00C9tapes
\u
00E0 lancer avant le build maven
\ No newline at end of file
Steps\
to\
run\
before\
mvn\
build
=
\u
00C9tapes
\u
00E0 lancer avant le build maven
Disable\
triggering\
of\
downstream\
projects
=
D
\u
00e9sactive le lancement des projets en aval
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录