hudson.plugins.helpers
Interface Ghostwriter.SlaveGhostwriter

All Superinterfaces:
Ghostwriter, java.io.Serializable
All Known Implementing Classes:
GhostWriter
Enclosing interface:
Ghostwriter

public static interface Ghostwriter.SlaveGhostwriter
extends Ghostwriter

If a Ghostwriter implements this interface, the performFromSlave method will be executed on the slave.


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.plugins.helpers.Ghostwriter
Ghostwriter.MasterGhostwriter, Ghostwriter.SlaveGhostwriter
 
Method Summary
 boolean performFromSlave(BuildProxy build, hudson.model.BuildListener listener)
          Runs (on the slave) the step over the given build and reports the progress to the listener.
 

Method Detail

performFromSlave

boolean performFromSlave(BuildProxy build,
                         hudson.model.BuildListener listener)
                         throws java.lang.InterruptedException,
                                java.io.IOException
Runs (on the slave) the step over the given build and reports the progress to the listener.

Parameters:
build - The information about the build.
listener - The buildListener.
Returns:
true if the build can continue, false if there was an error and the build needs to be aborted.
Throws:
java.lang.InterruptedException - If the build is interrupted by the user (in an attempt to abort the build.) Normally the BuildStep implementations may simply forward the exception it got from its lower-level functions.
java.io.IOException - If the implementation wants to abort the processing when an IOException happens, it can simply propagate the exception to the caller. This will cause the build to fail, with the default error message. Implementations are encouraged to catch IOException on its own to provide a better error message, if it can do so, so that users have better understanding on why it failed.


Copyright © 2010. All Rights Reserved.