public abstract class MavenBuilder extends AbstractMavenBuilder implements hudson.remoting.DelegatingCallable<hudson.model.Result,IOException>
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.
AbstractMavenBuilder.FilterImpl| Modifier and Type | Field and Description |
|---|---|
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. |
futures, goals, listener, proxies, reporters, sourceProxies, systemProps| Modifier | Constructor and Description |
|---|---|
protected |
MavenBuilder(hudson.model.BuildListener listener,
Collection<MavenModule> modules,
List<String> goals,
Map<String,String> systemProps) |
| Modifier and Type | Method and Description |
|---|---|
hudson.model.Result |
call()
This code is executed inside the maven jail process.
|
abstract boolean |
hasBuildFailures()
Whether there where test failures detected during the build.
|
format, formatArgs, getClassLoader, initializeAsynchronousExecutions, isDebug, isQuiet, recordAsynchronousExecution, registerSystemProperties, waitForAsynchronousExecutionspublic 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.
protected MavenBuilder(hudson.model.BuildListener listener,
Collection<MavenModule> modules,
List<String> goals,
Map<String,String> systemProps)
public hudson.model.Result call()
throws IOException
call in interface hudson.remoting.Callable<hudson.model.Result,IOException>IOExceptionpublic abstract boolean hasBuildFailures()
Copyright © 2016–2017. All rights reserved.