Interface MavenBuildProxy
- All Known Subinterfaces:
- MavenBuildProxy2
- All Known Implementing Classes:
- AbstractMavenBuilder.FilterImpl,- MavenBuild.ProxyImpl2,- MavenBuildProxy.Filter,- MavenBuildProxy2.Filter
MavenReporters to talk to MavenBuild
 during the build.
 
 That is, this represents MavenBuild objects in the controller's JVM to code
 running inside Maven JVM.- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMavenBuildProxy.BuildCallable<V,T extends Throwable> static classMavenBuildProxy.Filter<CORE extends MavenBuildProxy>Filter forMavenBuildProxy.
- 
Method SummaryModifier and TypeMethodDescription<V,T extends Throwable> 
 Vexecute(MavenBuildProxy.BuildCallable<V, T> program) Executes the givenMavenBuildProxy.BuildCallableon the controller, where one has access toMavenBuildand all the other Hudson objects.voidexecuteAsync(MavenBuildProxy.BuildCallable<?, ?> program) Executes the givenMavenBuildProxy.BuildCallableasynchronously on the controller.Deprecated.long# of milliseconds elapsed sincegetTimestamp().Root directory of the ownerMavenModuleSetRoot directory of the parent of this build.Root directory of the build.booleanIf true, artifacts will not actually be archived to controller.booleanIf true, artifacts will not actually be archived to controller during site deploy.voidqueueArchiving(String artifactPath, String artifact) voidNominates that the reporter will contribute a project action for this build by usingMavenReporter.getAggregatedProjectAction(MavenModuleSet).voidNominates that the reporter will contribute a project action for this build by usingMavenReporter.getProjectActions(MavenModule).voidregisterAsProjectAction(MavenReporter reporter) Nominates that the reporter will contribute a project action for this build by usingMavenReporter.getProjectActions(MavenModule).voidsetExecutedMojos(List<ExecutedMojo> executedMojos) Called at the end of the build to record what mojos are executed.void
- 
Method Details- 
execute<V,T extends Throwable> V execute(MavenBuildProxy.BuildCallable<V, T> program) throws T, IOException, InterruptedExceptionExecutes the givenMavenBuildProxy.BuildCallableon the controller, where one has access toMavenBuildand all the other Hudson objects.The parameter, return value, and exception are all transfered by using Java serialization. - Returns:
- the value that MavenBuildProxy.BuildCallablereturned.
- Throws:
- T- if- MavenBuildProxy.BuildCallablethrows this exception.
- IOException- if the remoting failed.
- InterruptedException- if the remote execution is aborted.
- See Also:
 
- 
executeAsyncExecutes the givenMavenBuildProxy.BuildCallableasynchronously on the controller.This method works like execute(BuildCallable)except that the method returns immediately and doesn't wait for the completion of the program.The completions of asynchronous executions are accounted for before the build completes. If they throw exceptions, they'll be reported and the build will be marked as a failure. - Throws:
- IOException
 
- 
getRootDirFilePath getRootDir()Root directory of the build.
- 
getProjectRootDirFilePath getProjectRootDir()Root directory of the parent of this build.
- 
getModuleSetRootDirFilePath getModuleSetRootDir()Root directory of the ownerMavenModuleSet
- 
getArtifactsDirDeprecated.Does not work withArtifactManager.
- 
queueArchiving- Parameters:
- artifactPath- a relative- /-separated path
- artifact- absolute path name on the agent in the workspace
- Since:
- 1.532
- See Also:
 
- 
setResult- See Also:
 
- 
getTimestampCalendar getTimestamp()- See Also:
 
- 
getMilliSecsSinceBuildStartlong getMilliSecsSinceBuildStart()# of milliseconds elapsed sincegetTimestamp(). Where the clock skew is involved between the controller and the Maven JVM, comparing current time on Maven JVM withgetTimestamp()could be problematic, but this value is more robust.
- 
isArchivingDisabledboolean isArchivingDisabled()If true, artifacts will not actually be archived to controller. CallsMavenModuleSet.isArchivingDisabled().
- 
isSiteArchivingDisabledboolean isSiteArchivingDisabled()If true, artifacts will not actually be archived to controller during site deploy. CallsMavenModuleSet.isSiteArchivingDisabled().
- 
registerAsProjectActionNominates that the reporter will contribute a project action for this build by usingMavenReporter.getProjectActions(MavenModule).The specified MavenReporterobject will be transfered to the controller and will become a persisted part of theMavenBuild.
- 
registerAsProjectActionNominates that the reporter will contribute a project action for this build by usingMavenReporter.getProjectActions(MavenModule).The specified MavenReporterobject will be transferred to the controller and will become a persisted part of theMavenBuild.- Since:
- 1.372
 
- 
registerAsAggregatedProjectActionNominates that the reporter will contribute a project action for this build by usingMavenReporter.getAggregatedProjectAction(MavenModuleSet).The specified MavenReporterobject will be transfered to the controller and will become a persisted part of theMavenModuleSetBuild.
- 
setExecutedMojosCalled at the end of the build to record what mojos are executed.
- 
getMavenBuildInformationMavenBuildInformation getMavenBuildInformation()
 
- 
ArtifactManager.