mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
[FIXED HUDSON-4739] Fixed "even if unstable" option for triggering other projects
from a Maven type project; added unit test. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23455 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
f527d22a70
commit
5600aa9b44
6 files changed
+83
-18
No files matched your search
@@ -234,6 +234,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
return r;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) {
|
||||
// map corresponding module build under this object
|
||||
if(token.indexOf('$')>0) {
|
||||
@@ -608,9 +609,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
if(project.isAggregatorStyleBuild()) {
|
||||
// schedule downstream builds. for non aggregator style builds,
|
||||
// this is done by each module
|
||||
if(getResult().isBetterOrEqualTo(Result.SUCCESS)) {
|
||||
scheduleDownstreamBuilds(listener);
|
||||
}
|
||||
scheduleDownstreamBuilds(listener);
|
||||
}
|
||||
|
||||
MavenMailer mailer = project.getReporters().get(MavenMailer.class);
|
||||
@@ -660,6 +659,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
super(core);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeAsync(final BuildCallable<?,?> program) throws IOException {
|
||||
futures.add(Channel.current().callAsync(new AsyncInvoker(core,program)));
|
||||
}
|
||||
@@ -683,6 +683,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result call() throws IOException {
|
||||
try {
|
||||
return super.call();
|
||||
@@ -771,6 +772,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
super(cause);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Exception getCause() {
|
||||
return (Exception)super.getCause();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user