Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
b8151b57
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,发现更多精彩内容 >>
提交
b8151b57
编写于
3月 22, 2013
作者:
J
Jesse Glick
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into cron-hash-JENKINS-17311
上级
ccf8427a
56c6aa32
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
12 deletion
+21
-12
changelog.html
changelog.html
+3
-0
core/src/main/java/hudson/tasks/ArtifactArchiver.java
core/src/main/java/hudson/tasks/ArtifactArchiver.java
+0
-4
maven-plugin/src/main/java/hudson/maven/MavenBuild.java
maven-plugin/src/main/java/hudson/maven/MavenBuild.java
+3
-2
maven-plugin/src/main/java/hudson/maven/local_repo/PerJobLocalRepositoryLocator.java
...hudson/maven/local_repo/PerJobLocalRepositoryLocator.java
+13
-2
test/src/test/java/hudson/maven/MavenProjectTest.java
test/src/test/java/hudson/maven/MavenProjectTest.java
+2
-3
war/pom.xml
war/pom.xml
+0
-1
未找到文件。
changelog.html
浏览文件 @
b8151b57
...
...
@@ -64,6 +64,9 @@ Upcoming changes</a>
<li
class=
rfe
>
Better report file deletion failures.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-17271"
>
issue 17271
</a>
)
<li
class=
bug
>
"Local to the workspace" repository locator does not work when building one module in isolation.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-17331"
>
issue 17331
</a>
)
<li
class=
bug
>
Master node mode not correctly displayed in
<code>
/computer/(master)/configure
</code>
.
(
<a
href=
"https://issues.jenkins-ci.org/browse/JENKINS-17263"
>
issue 17263
</a>
)
...
...
core/src/main/java/hudson/tasks/ArtifactArchiver.java
浏览文件 @
b8151b57
...
...
@@ -32,7 +32,6 @@ import hudson.model.AbstractProject;
import
hudson.model.BuildListener
;
import
hudson.model.Result
;
import
hudson.util.FormValidation
;
import
hudson.util.TimeUnit2
;
import
org.kohsuke.stapler.StaplerRequest
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.AncestorInPath
;
...
...
@@ -123,7 +122,6 @@ public class ArtifactArchiver extends Recorder {
File
dir
=
build
.
getArtifactsDir
();
dir
.
mkdirs
();
final
long
start
=
System
.
nanoTime
();
listener
.
getLogger
().
println
(
Messages
.
ArtifactArchiver_ARCHIVING_ARTIFACTS
());
try
{
FilePath
ws
=
build
.
getWorkspace
();
...
...
@@ -159,8 +157,6 @@ public class ArtifactArchiver extends Recorder {
return
true
;
}
// System.out.println("Took "+ TimeUnit2.NANOSECONDS.toMillis(System.nanoTime()-start));
return
true
;
}
...
...
maven-plugin/src/main/java/hudson/maven/MavenBuild.java
浏览文件 @
b8151b57
...
...
@@ -74,6 +74,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.logging.Logger
;
import
javax.annotation.CheckForNull
;
import
jenkins.mvn.SettingsProvider
;
...
...
@@ -153,7 +154,7 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
* is manually triggered.
* @see #getModuleSetBuild()
*/
public
MavenModuleSetBuild
getParentBuild
()
{
public
@CheckForNull
MavenModuleSetBuild
getParentBuild
()
{
return
getParent
().
getParent
().
getBuildByNumber
(
getNumber
());
}
...
...
@@ -174,7 +175,7 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
* is manually removed.
* @see #getParentBuild()
*/
public
MavenModuleSetBuild
getModuleSetBuild
()
{
public
@CheckForNull
MavenModuleSetBuild
getModuleSetBuild
()
{
return
getParent
().
getParent
().
getNearestOldBuild
(
getNumber
());
}
...
...
maven-plugin/src/main/java/hudson/maven/local_repo/PerJobLocalRepositoryLocator.java
浏览文件 @
b8151b57
...
...
@@ -3,6 +3,8 @@ package hudson.maven.local_repo;
import
hudson.Extension
;
import
hudson.FilePath
;
import
hudson.maven.AbstractMavenBuild
;
import
hudson.maven.MavenBuild
;
import
hudson.maven.MavenModuleSetBuild
;
import
org.kohsuke.stapler.DataBoundConstructor
;
/**
...
...
@@ -17,8 +19,17 @@ public class PerJobLocalRepositoryLocator extends LocalRepositoryLocator {
@Override
public
FilePath
locate
(
AbstractMavenBuild
build
)
{
// XXX should this use ((MavenBuild) build).getParentBuild().getWorkspace() when instanceof MavenBuild?
return
build
.
getWorkspace
().
child
(
".repository"
);
if
(
build
instanceof
MavenBuild
)
{
MavenModuleSetBuild
parentBuild
=
((
MavenBuild
)
build
).
getModuleSetBuild
();
if
(
parentBuild
!=
null
)
{
build
=
parentBuild
;
}
}
FilePath
ws
=
build
.
getWorkspace
();
if
(
ws
==
null
)
{
return
null
;
}
return
ws
.
child
(
".repository"
);
}
@Extension
...
...
test/src/test/java/hudson/maven/MavenProjectTest.java
浏览文件 @
b8151b57
...
...
@@ -23,7 +23,7 @@
*/
package
hudson.maven
;
import
hudson.maven.local_repo.Per
Executor
LocalRepositoryLocator
;
import
hudson.maven.local_repo.Per
Job
LocalRepositoryLocator
;
import
hudson.model.AbstractProject
;
import
hudson.model.Item
;
import
hudson.model.Result
;
...
...
@@ -75,8 +75,7 @@ public class MavenProjectTest extends HudsonTestCase {
project
.
setScm
(
new
ExtractResourceSCM
(
getClass
().
getResource
(
scmResource
)));
project
.
setMaven
(
mi
.
getName
());
// PerJobLocalRepositoryLocator does not work, since the repo for a module is distinct from that of the set
project
.
setLocalRepository
(
new
PerExecutorLocalRepositoryLocator
());
project
.
setLocalRepository
(
new
PerJobLocalRepositoryLocator
());
return
project
;
}
...
...
war/pom.xml
浏览文件 @
b8151b57
...
...
@@ -270,7 +270,6 @@ THE SOFTWARE.
<artifactItem>
<groupId>
org.jenkins-ci.plugins
</groupId>
<artifactId>
ssh-slaves
</artifactId>
<!-- when upgrading may need to add credentials and ssh-credentials too: https://github.com/jenkinsci/ssh-slaves-plugin/commit/7f7031bdaae528baf8e4a1cf29a95849ef268c5c -->
<version>
0.23
</version>
<type>
hpi
</type>
</artifactItem>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录