public abstract static class IvyBuildProxy.Filter<CORE extends IvyBuildProxy> extends java.lang.Object implements IvyBuildProxy, java.io.Serializable
IvyBuildProxy.
Meant to be useful as the base class for other filters.| Modifier and Type | Class and Description |
|---|---|
protected static class |
IvyBuildProxy.Filter.AsyncInvoker
Callable for invoking IvyBuildProxy.BuildCallable asynchronously. |
IvyBuildProxy.BuildCallable<V,T extends java.lang.Throwable>, IvyBuildProxy.Filter<CORE extends IvyBuildProxy>| Modifier and Type | Method and Description |
|---|---|
<V,T extends java.lang.Throwable> |
execute(IvyBuildProxy.BuildCallable<V,T> program)
Executes the given
IvyBuildProxy.BuildCallable on the master, where one
has access to IvyBuild and all the other Jenkins objects. |
void |
executeAsync(IvyBuildProxy.BuildCallable<?,?> program)
Executes the given
IvyBuildProxy.BuildCallable asynchronously on the master. |
hudson.FilePath |
getArtifactsDir() |
long |
getMilliSecsSinceBuildStart()
# of milliseconds elapsed since
IvyBuildProxy.getTimestamp(). |
hudson.FilePath |
getModuleSetRootDir()
Root directory of the owner
IvyModuleSet |
hudson.FilePath |
getProjectRootDir()
Root directory of the parent of this build.
|
hudson.FilePath |
getRootDir()
Root directory of the build.
|
java.util.Calendar |
getTimestamp() |
boolean |
isArchivingDisabled()
If true, artifacts will not actually be archived to master.
|
void |
registerAsAggregatedProjectAction(IvyReporter reporter)
Nominates that the reporter will contribute a project action
for this build by using
IvyReporter.getAggregatedProjectAction(IvyModuleSet). |
void |
registerAsProjectAction(IvyReporter reporter)
Nominates that the reporter will contribute a project action
for this build by using
IvyReporter.getProjectAction(IvyModule). |
void |
setResult(hudson.model.Result result) |
protected final CORE extends IvyBuildProxy core
protected Filter(CORE core)
public <V,T extends java.lang.Throwable> V execute(IvyBuildProxy.BuildCallable<V,T> program) throws T extends java.lang.Throwable, java.io.IOException, java.lang.InterruptedException
IvyBuildProxyIvyBuildProxy.BuildCallable on the master, where one
has access to IvyBuild and all the other Jenkins objects.
The parameter, return value, and exception are all transferred by using Java serialization.
execute in interface IvyBuildProxyIvyBuildProxy.BuildCallable returned.T - if IvyBuildProxy.BuildCallable throws this exception.java.io.IOException - if the remoting failed.java.lang.InterruptedException - if the remote execution is aborted.T extends java.lang.ThrowableIvyBuildProxy.executeAsync(BuildCallable)public void executeAsync(IvyBuildProxy.BuildCallable<?,?> program) throws java.io.IOException
IvyBuildProxyIvyBuildProxy.BuildCallable asynchronously on the master.
This method works like IvyBuildProxy.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.
executeAsync in interface IvyBuildProxyjava.io.IOExceptionpublic hudson.FilePath getRootDir()
IvyBuildProxygetRootDir in interface IvyBuildProxyRun.getRootDir()public hudson.FilePath getProjectRootDir()
IvyBuildProxygetProjectRootDir in interface IvyBuildProxypublic hudson.FilePath getModuleSetRootDir()
IvyBuildProxyIvyModuleSetgetModuleSetRootDir in interface IvyBuildProxypublic hudson.FilePath getArtifactsDir()
getArtifactsDir in interface IvyBuildProxyRun.getArtifactsDir()public void setResult(hudson.model.Result result)
setResult in interface IvyBuildProxyRun.setResult(Result)public java.util.Calendar getTimestamp()
getTimestamp in interface IvyBuildProxyRun.getTimestamp()public long getMilliSecsSinceBuildStart()
IvyBuildProxyIvyBuildProxy.getTimestamp().
Where the clock skew is involved between the master and the Ivy JVM, comparing
current time on Ivy JVM with IvyBuildProxy.getTimestamp() could be problematic,
but this value is more robust.getMilliSecsSinceBuildStart in interface IvyBuildProxypublic boolean isArchivingDisabled()
IvyBuildProxyIvyModuleSet.isArchivingDisabled().isArchivingDisabled in interface IvyBuildProxypublic void registerAsProjectAction(IvyReporter reporter)
IvyBuildProxyIvyReporter.getProjectAction(IvyModule).
The specified IvyReporter object will be transferred to the master
and will become a persisted part of the IvyBuild.
registerAsProjectAction in interface IvyBuildProxypublic void registerAsAggregatedProjectAction(IvyReporter reporter)
IvyBuildProxyIvyReporter.getAggregatedProjectAction(IvyModuleSet).
The specified IvyReporter object will be transferred to the master
and will become a persisted part of the IvyModuleSetBuild.
registerAsAggregatedProjectAction in interface IvyBuildProxy