Interface IvyBuildProxy
- All Known Subinterfaces:
IvyBuildProxy2
- All Known Implementing Classes:
IvyBuildProxy.Filter,IvyBuildProxy2.Filter
IvyReporters to talk to IvyBuild
during the build.- Author:
- Timothy Bingaman
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceIvyBuildProxy.BuildCallable<V,T extends Throwable> static classIvyBuildProxy.Filter<CORE extends IvyBuildProxy>Filter forIvyBuildProxy. -
Method Summary
Modifier and TypeMethodDescription<V,T extends Throwable>
Vexecute(IvyBuildProxy.BuildCallable<V, T> program) Executes the givenIvyBuildProxy.BuildCallableon the master, where one has access toIvyBuildand all the other Jenkins objects.voidexecuteAsync(IvyBuildProxy.BuildCallable<?, ?> program) Executes the givenIvyBuildProxy.BuildCallableasynchronously on the master.long# of milliseconds elapsed sincegetTimestamp().Root directory of the ownerIvyModuleSetRoot directory of the parent of this build.Root directory of the build.booleanIf true, artifacts will not actually be archived to master.voidregisterAsAggregatedProjectAction(IvyReporter reporter) Nominates that the reporter will contribute a project action for this build by usingIvyReporter.getAggregatedProjectAction(IvyModuleSet).voidregisterAsProjectAction(IvyReporter reporter) Nominates that the reporter will contribute a project action for this build by usingIvyReporter.getProjectAction(IvyModule).void
-
Method Details
-
execute
<V,T extends Throwable> V execute(IvyBuildProxy.BuildCallable<V, T> program) throws T, IOException, InterruptedExceptionExecutes the givenIvyBuildProxy.BuildCallableon the master, where one has access toIvyBuildand all the other Jenkins objects.The parameter, return value, and exception are all transferred by using Java serialization.
- Returns:
- the value that
IvyBuildProxy.BuildCallablereturned. - Throws:
T- ifIvyBuildProxy.BuildCallablethrows this exception.IOException- if the remoting failed.InterruptedException- if the remote execution is aborted.- See Also:
-
executeAsync
Executes the givenIvyBuildProxy.BuildCallableasynchronously on the master.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
-
getRootDir
FilePath getRootDir()Root directory of the build.- See Also:
-
getProjectRootDir
FilePath getProjectRootDir()Root directory of the parent of this build. -
getModuleSetRootDir
FilePath getModuleSetRootDir()Root directory of the ownerIvyModuleSet -
getArtifactsDir
FilePath getArtifactsDir()- See Also:
-
setResult
- See Also:
-
getTimestamp
Calendar getTimestamp()- See Also:
-
getMilliSecsSinceBuildStart
long getMilliSecsSinceBuildStart()# of milliseconds elapsed sincegetTimestamp().Where the clock skew is involved between the master and the Ivy JVM, comparing current time on Ivy JVM with
getTimestamp()could be problematic, but this value is more robust. -
isArchivingDisabled
boolean isArchivingDisabled()If true, artifacts will not actually be archived to master. CallsIvyModuleSet.isArchivingDisabled(). -
registerAsProjectAction
Nominates that the reporter will contribute a project action for this build by usingIvyReporter.getProjectAction(IvyModule).The specified
IvyReporterobject will be transferred to the master and will become a persisted part of theIvyBuild. -
registerAsAggregatedProjectAction
Nominates that the reporter will contribute a project action for this build by usingIvyReporter.getAggregatedProjectAction(IvyModuleSet).The specified
IvyReporterobject will be transferred to the master and will become a persisted part of theIvyModuleSetBuild.
-