|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.maven.AbstractMavenBuilder
hudson.maven.MavenBuilder
public abstract class MavenBuilder
Callable that invokes Maven CLI (in process) and drives a build.
As a callable, this function returns the build result.
This class defines a series of event callbacks, which are invoked during the build. This allows subclass to monitor the progress of a build.
| Field Summary | |
|---|---|
protected List<Future<?>> |
futures
Record all asynchronous executions as they are scheduled, to make sure they are all completed before we finish. |
static boolean |
markAsSuccess
Used by selected MavenReporters to notify the maven build agent
that even though Maven is going to fail, we should report the build as
success. |
| Fields inherited from class hudson.maven.AbstractMavenBuilder |
|---|
goals, listener, systemProps |
| Constructor Summary | |
|---|---|
protected |
MavenBuilder(BuildListener listener,
List<String> goals,
Map<String,String> systemProps)
|
| Method Summary | |
|---|---|
Result |
call()
This code is executed inside the maven jail process. |
| Methods inherited from class hudson.maven.AbstractMavenBuilder |
|---|
format, formatArgs, getClassLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.remoting.DelegatingCallable |
|---|
getClassLoader |
| Field Detail |
|---|
protected transient List<Future<?>> futures
public static boolean markAsSuccess
MavenReporters to notify the maven build agent
that even though Maven is going to fail, we should report the build as
success.
This rather ugly hook is necessary to mark builds as unstable, since maven considers a test failure to be a build failure, which will otherwise mark the build as FAILED.
It's OK for this field to be static, because the JVM where this is actually used is in the Maven JVM, so only one build is going on for the whole JVM.
Even though this field is public, please consider this field reserved
for SurefireArchiver. Subject to change without notice.
| Constructor Detail |
|---|
protected MavenBuilder(BuildListener listener,
List<String> goals,
Map<String,String> systemProps)
| Method Detail |
|---|
public Result call()
throws IOException
call in interface Callable<Result,IOException>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||