org.jenkinsci.plugins.pretestedintegration
Class PretestedIntegrationAction

java.lang.Object
  extended by org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class PretestedIntegrationAction
extends Object
implements hudson.model.Action


Constructor Summary
PretestedIntegrationAction(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, AbstractSCMBridge scmBridge)
           
 
Method Summary
 boolean finalise(hudson.Launcher launcher, hudson.model.BuildListener listener)
          Invoked by the notifier, responsible for commiting or rolling back the workspace
 Commit<?> getCommit()
           
 Commit<?> getCurrentIntegrationTip()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getUrlName()
           
 boolean initialise(hudson.Launcher launcher, hudson.model.BuildListener listener)
          Invoked before the build is started, responsible for preparing the workspace
 void setCurrentIntegrationTip(Commit<?> currentIntegrationTip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PretestedIntegrationAction

public PretestedIntegrationAction(hudson.model.AbstractBuild<?,?> build,
                                  hudson.Launcher launcher,
                                  hudson.model.BuildListener listener,
                                  AbstractSCMBridge scmBridge)
                           throws NextCommitFailureException
Throws:
NextCommitFailureException
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getCommit

public Commit<?> getCommit()

initialise

public boolean initialise(hudson.Launcher launcher,
                          hudson.model.BuildListener listener)
                   throws IntegationFailedExeception,
                          NothingToDoException,
                          EstablishWorkspaceException
Invoked before the build is started, responsible for preparing the workspace

Parameters:
launcher -
listener -
Returns:
True if any changes are made and the workspace has been prepared, false otherwise
Throws:
IntegationFailedExeception
NothingToDoException
EstablishWorkspaceException

finalise

public boolean finalise(hudson.Launcher launcher,
                        hudson.model.BuildListener listener)
                 throws IOException
Invoked by the notifier, responsible for commiting or rolling back the workspace

Parameters:
launcher -
listener -
Returns:
Boolean indicating success or failure
Throws:
IllegalArgumentException
IOException

getCurrentIntegrationTip

public Commit<?> getCurrentIntegrationTip()
Returns:
the currentIntegrationTip

setCurrentIntegrationTip

public void setCurrentIntegrationTip(Commit<?> currentIntegrationTip)
Parameters:
currentIntegrationTip - the currentIntegrationTip to set


Copyright © 2004-2014. All Rights Reserved.