public abstract class AbstractMavenBuilder extends jenkins.security.MasterToSlaveCallable<hudson.model.Result,IOException> implements hudson.remoting.DelegatingCallable<hudson.model.Result,IOException>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractMavenBuilder.FilterImpl |
| Modifier and Type | Field and Description |
|---|---|
protected List<hudson.remoting.Future<?>> |
futures
Record all asynchronous executions as they are scheduled,
to make sure they are all completed before we finish.
|
protected List<String> |
goals
Goals to be executed in this Maven execution.
|
protected hudson.model.BuildListener |
listener
Where error messages and so on are sent.
|
protected Map<ModuleName,AbstractMavenBuilder.FilterImpl> |
proxies |
protected Map<ModuleName,List<MavenReporter>> |
reporters |
protected Map<ModuleName,MavenBuild.ProxyImpl2> |
sourceProxies
Kept so that we can finalize them in the end method.
|
protected Map<String,String> |
systemProps
Hudson-defined system properties.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMavenBuilder(hudson.model.BuildListener listener,
Collection<MavenModule> modules,
List<String> goals,
Map<String,String> systemProps) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
format(NumberFormat n,
long nanoTime) |
protected String |
formatArgs(List<String> args) |
ClassLoader |
getClassLoader() |
protected void |
initializeAsynchronousExecutions()
Initialize the collection of the asynchronous executions.
|
protected boolean |
isDebug() |
protected boolean |
isQuiet() |
protected void |
recordAsynchronousExecution(hudson.remoting.Future<?> future)
Records a new asynchronous exection.
|
protected void |
registerSystemProperties()
Add all the
jenkins environment variables into the system properties
Ignores jenkins environment variables with empty keys. |
protected hudson.model.Result |
waitForAsynchronousExecutions()
Waits until all asynchronous executions are finished.
|
protected final Map<String,String> systemProps
protected final hudson.model.BuildListener listener
protected Map<ModuleName,AbstractMavenBuilder.FilterImpl> proxies
protected final transient Map<ModuleName,MavenBuild.ProxyImpl2> sourceProxies
protected final Map<ModuleName,List<MavenReporter>> reporters
protected transient List<hudson.remoting.Future<?>> futures
protected AbstractMavenBuilder(hudson.model.BuildListener listener,
Collection<MavenModule> modules,
List<String> goals,
Map<String,String> systemProps)
protected void registerSystemProperties()
jenkins environment variables into the system properties
Ignores jenkins environment variables with empty keys.IllegalArgumentException - if a jenkins environment variable has null value
as it blows up Maven.protected String format(NumberFormat n, long nanoTime)
public ClassLoader getClassLoader()
getClassLoader in interface hudson.remoting.DelegatingCallable<hudson.model.Result,IOException>protected void initializeAsynchronousExecutions()
protected void recordAsynchronousExecution(hudson.remoting.Future<?> future)
protected hudson.model.Result waitForAsynchronousExecutions()
protected boolean isDebug()
protected boolean isQuiet()
Copyright © 2016–2017. All rights reserved.