public class MavenBuild.ProxyImpl2 extends Object implements MavenBuildProxy2
MavenBuildProxy2.Filter<CORE extends MavenBuildProxy2>MavenBuildProxy.BuildCallable<V,T extends Throwable>| Modifier and Type | Method and Description |
|---|---|
void |
appendLastLog()
Sends the accumulated log in
SplittableBuildListener to the log of this build. |
protected void |
close()
Performs final clean up.
|
void |
end()
Notifies that the build has left a module.
|
<V,T extends Throwable> |
execute(MavenBuildProxy.BuildCallable<V,T> program)
Executes the given
MavenBuildProxy.BuildCallable on the master, where one
has access to MavenBuild and all the other Hudson objects. |
void |
executeAsync(MavenBuildProxy.BuildCallable<?,?> program)
Deprecated.
This helps IDE find coding mistakes when someone tries to call this method.
|
hudson.FilePath |
getArtifactsDir()
Deprecated.
Does not work with
ArtifactManager. |
MavenBuildInformation |
getMavenBuildInformation() |
long |
getMilliSecsSinceBuildStart()
# of milliseconds elapsed since
MavenBuildProxy.getTimestamp(). |
hudson.FilePath |
getModuleSetRootDir()
Root directory of the owner
MavenModuleSet |
hudson.FilePath |
getProjectRootDir()
Root directory of the parent of this build.
|
hudson.FilePath |
getRootDir()
Root directory of the build.
|
Calendar |
getTimestamp() |
boolean |
isArchivingDisabled()
If true, artifacts will not actually be archived to master.
|
boolean |
isSiteArchivingDisabled()
If true, artifacts will not actually be archived to master during site deploy.
|
MavenBuild |
owner()
Gets the build for which this proxy is created.
|
void |
queueArchiving(String artifactPath,
String artifact) |
void |
registerAsAggregatedProjectAction(MavenReporter reporter)
Nominates that the reporter will contribute a project action
for this build by using
MavenReporter.getAggregatedProjectAction(MavenModuleSet). |
void |
registerAsProjectAction(MavenProjectActionBuilder builder)
Nominates that the reporter will contribute a project action
for this build by using
MavenReporter.getProjectActions(MavenModule). |
void |
registerAsProjectAction(MavenReporter reporter)
Nominates that the reporter will contribute a project action
for this build by using
MavenReporter.getProjectActions(MavenModule). |
protected void |
setBlockBuildEvents(boolean blockBuildEvents) |
void |
setExecutedMojos(List<ExecutedMojo> executedMojos)
Called at the end of the build to record what mojos are executed.
|
void |
setResult(hudson.model.Result result) |
void |
start()
Notifies that the build has entered a module.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, executeAsync, getArtifactsDir, getMavenBuildInformation, getMilliSecsSinceBuildStart, getModuleSetRootDir, getProjectRootDir, getRootDir, getTimestamp, isArchivingDisabled, isSiteArchivingDisabled, queueArchiving, registerAsAggregatedProjectAction, registerAsProjectAction, registerAsProjectAction, setExecutedMojos, setResultpublic void start()
MavenBuildProxy2start in interface MavenBuildProxy2public void end()
MavenBuildProxy2end in interface MavenBuildProxy2public void appendLastLog()
SplittableBuildListener to the log of this build.appendLastLog in interface MavenBuildProxy2protected void close()
public MavenBuild owner()
protected void setBlockBuildEvents(boolean blockBuildEvents)
public <V,T extends Throwable> V execute(MavenBuildProxy.BuildCallable<V,T> program) throws T extends Throwable, IOException, InterruptedException
MavenBuildProxyMavenBuildProxy.BuildCallable on the master, where one
has access to MavenBuild and all the other Hudson objects.
The parameter, return value, and exception are all transfered by using Java serialization.
execute in interface MavenBuildProxyMavenBuildProxy.BuildCallable returned.T - if MavenBuildProxy.BuildCallable throws this exception.IOException - if the remoting failed.InterruptedException - if the remote execution is aborted.T extends ThrowableMavenBuildProxy.executeAsync(BuildCallable)public final void executeAsync(MavenBuildProxy.BuildCallable<?,?> program) throws IOException
executeAsync in interface MavenBuildProxyIOExceptionpublic hudson.FilePath getRootDir()
MavenBuildProxygetRootDir in interface MavenBuildProxyRun.getRootDir()public hudson.FilePath getProjectRootDir()
MavenBuildProxygetProjectRootDir in interface MavenBuildProxypublic hudson.FilePath getModuleSetRootDir()
MavenBuildProxyMavenModuleSetgetModuleSetRootDir in interface MavenBuildProxy@Deprecated public hudson.FilePath getArtifactsDir()
ArtifactManager.getArtifactsDir in interface MavenBuildProxypublic void queueArchiving(String artifactPath, String artifact)
queueArchiving in interface MavenBuildProxyartifactPath - a relative /-separated pathartifact - absolute path name on the slave in the workspaceArtifactManager.archive(hudson.FilePath, hudson.Launcher, hudson.model.BuildListener, java.util.Map<java.lang.String, java.lang.String>)public void setResult(hudson.model.Result result)
setResult in interface MavenBuildProxyRun.setResult(Result)public Calendar getTimestamp()
getTimestamp in interface MavenBuildProxyRun.getTimestamp()public long getMilliSecsSinceBuildStart()
MavenBuildProxyMavenBuildProxy.getTimestamp().
Where the clock skew is involved between the master and the Maven JVM, comparing
current time on Maven JVM with MavenBuildProxy.getTimestamp() could be problematic,
but this value is more robust.getMilliSecsSinceBuildStart in interface MavenBuildProxypublic boolean isArchivingDisabled()
MavenBuildProxyMavenModuleSet.isArchivingDisabled().isArchivingDisabled in interface MavenBuildProxypublic boolean isSiteArchivingDisabled()
MavenBuildProxyMavenModuleSet.isSiteArchivingDisabled().isSiteArchivingDisabled in interface MavenBuildProxypublic void registerAsProjectAction(MavenReporter reporter)
MavenBuildProxyMavenReporter.getProjectActions(MavenModule).
The specified MavenReporter object will be transfered to the master
and will become a persisted part of the MavenBuild.
registerAsProjectAction in interface MavenBuildProxypublic void registerAsProjectAction(MavenProjectActionBuilder builder)
MavenBuildProxyMavenReporter.getProjectActions(MavenModule).
The specified MavenReporter object will be transferred to the master
and will become a persisted part of the MavenBuild.
registerAsProjectAction in interface MavenBuildProxypublic void registerAsAggregatedProjectAction(MavenReporter reporter)
MavenBuildProxyMavenReporter.getAggregatedProjectAction(MavenModuleSet).
The specified MavenReporter object will be transfered to the master
and will become a persisted part of the MavenModuleSetBuild.
registerAsAggregatedProjectAction in interface MavenBuildProxypublic void setExecutedMojos(List<ExecutedMojo> executedMojos)
MavenBuildProxysetExecutedMojos in interface MavenBuildProxypublic MavenBuildInformation getMavenBuildInformation()
getMavenBuildInformation in interface MavenBuildProxyCopyright © 2016–2017. All rights reserved.