Class MavenBuildProxy.Filter<CORE extends MavenBuildProxy>
- All Implemented Interfaces:
MavenBuildProxy,Serializable
- Direct Known Subclasses:
MavenBuildProxy2.Filter
- Enclosing interface:
- MavenBuildProxy
MavenBuildProxy.
Meant to be useful as the base class for other filters.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classCallablefor invokingMavenBuildProxy.BuildCallableasynchronously.Nested classes/interfaces inherited from interface hudson.maven.MavenBuildProxy
MavenBuildProxy.BuildCallable<V,T extends Throwable>, MavenBuildProxy.Filter<CORE extends MavenBuildProxy> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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.long# of milliseconds elapsed sinceMavenBuildProxy.getTimestamp().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
-
Field Details
-
core
-
-
Constructor Details
-
Filter
-
-
Method Details
-
execute
public <V,T extends Throwable> V execute(MavenBuildProxy.BuildCallable<V, T> program) throws T, IOException, InterruptedExceptionDescription copied from interface:MavenBuildProxyExecutes 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.
- Specified by:
executein interfaceMavenBuildProxy- Returns:
- the value that
MavenBuildProxy.BuildCallablereturned. - Throws:
T- ifMavenBuildProxy.BuildCallablethrows this exception.IOException- if the remoting failed.InterruptedException- if the remote execution is aborted.- See Also:
-
executeAsync
Description copied from interface:MavenBuildProxyExecutes the givenMavenBuildProxy.BuildCallableasynchronously on the controller.This method works like
MavenBuildProxy.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.
- Specified by:
executeAsyncin interfaceMavenBuildProxy- Throws:
IOException
-
getRootDir
Description copied from interface:MavenBuildProxyRoot directory of the build.- Specified by:
getRootDirin interfaceMavenBuildProxy- See Also:
-
getProjectRootDir
Description copied from interface:MavenBuildProxyRoot directory of the parent of this build.- Specified by:
getProjectRootDirin interfaceMavenBuildProxy- See Also:
-
getModuleSetRootDir
Description copied from interface:MavenBuildProxyRoot directory of the ownerMavenModuleSet- Specified by:
getModuleSetRootDirin interfaceMavenBuildProxy- See Also:
-
getArtifactsDir
- Specified by:
getArtifactsDirin interfaceMavenBuildProxy
-
queueArchiving
- Specified by:
queueArchivingin interfaceMavenBuildProxy- Parameters:
artifactPath- a relative/-separated pathartifact- absolute path name on the agent in the workspace- See Also:
-
setResult
- Specified by:
setResultin interfaceMavenBuildProxy- See Also:
-
getTimestamp
- Specified by:
getTimestampin interfaceMavenBuildProxy- See Also:
-
getMilliSecsSinceBuildStart
public long getMilliSecsSinceBuildStart()Description copied from interface:MavenBuildProxy# of milliseconds elapsed sinceMavenBuildProxy.getTimestamp(). Where the clock skew is involved between the controller and the Maven JVM, comparing current time on Maven JVM withMavenBuildProxy.getTimestamp()could be problematic, but this value is more robust.- Specified by:
getMilliSecsSinceBuildStartin interfaceMavenBuildProxy
-
isArchivingDisabled
public boolean isArchivingDisabled()Description copied from interface:MavenBuildProxyIf true, artifacts will not actually be archived to controller. CallsMavenModuleSet.isArchivingDisabled().- Specified by:
isArchivingDisabledin interfaceMavenBuildProxy
-
isSiteArchivingDisabled
public boolean isSiteArchivingDisabled()Description copied from interface:MavenBuildProxyIf true, artifacts will not actually be archived to controller during site deploy. CallsMavenModuleSet.isSiteArchivingDisabled().- Specified by:
isSiteArchivingDisabledin interfaceMavenBuildProxy
-
registerAsProjectAction
Description copied from interface:MavenBuildProxyNominates 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.- Specified by:
registerAsProjectActionin interfaceMavenBuildProxy
-
registerAsProjectAction
Description copied from interface:MavenBuildProxyNominates 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.- Specified by:
registerAsProjectActionin interfaceMavenBuildProxy
-
registerAsAggregatedProjectAction
Description copied from interface:MavenBuildProxyNominates 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.- Specified by:
registerAsAggregatedProjectActionin interfaceMavenBuildProxy
-
setExecutedMojos
Description copied from interface:MavenBuildProxyCalled at the end of the build to record what mojos are executed.- Specified by:
setExecutedMojosin interfaceMavenBuildProxy
-
getMavenBuildInformation
- Specified by:
getMavenBuildInformationin interfaceMavenBuildProxy
-