net.praqma.jenkins.plugin.reloaded
Class RebuildAction

java.lang.Object
  extended by net.praqma.jenkins.plugin.reloaded.RebuildAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class RebuildAction
extends Object
implements hudson.model.Action

This is the action for a matrix build, that determines which(if any) combinations, that should be rebuild.

Author:
wolfgang

Constructor Summary
RebuildAction()
           
 
Method Summary
 void addConfiguration(hudson.matrix.Combination combination, boolean reuse)
          Add a configuration to the build state
 RebuildAction clone()
           
 RebuildAction clone(int baseBuildNumber)
           
 boolean doRebuildDownstream()
           
 int getBaseBuildNumber()
           
 boolean getConfiguration(hudson.matrix.Combination combination)
          Returns whether or not to rebuild the Run If the combination is not in the database, the method returns true, meaning the run will build.
 String getDisplayName()
           
 String getIconFileName()
           
 String getUrlName()
           
 void setBaseBuildNumber(int baseBuildNumber)
           
 void setRebuildDownstream(boolean b)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RebuildAction

public RebuildAction()
Method Detail

setBaseBuildNumber

public void setBaseBuildNumber(int baseBuildNumber)

setRebuildDownstream

public void setRebuildDownstream(boolean b)

getBaseBuildNumber

public int getBaseBuildNumber()

doRebuildDownstream

public boolean doRebuildDownstream()

clone

public RebuildAction clone(int baseBuildNumber)

clone

public RebuildAction clone()
Overrides:
clone in class Object

addConfiguration

public void addConfiguration(hudson.matrix.Combination combination,
                             boolean reuse)
Add a configuration to the build state

Parameters:
config - A String representing the MatrixConfiguration given as its Combination
reuse - A boolean to determine whether to reuse the Run or not

getConfiguration

public boolean getConfiguration(hudson.matrix.Combination combination)
Returns whether or not to rebuild the Run If the combination is not in the database, the method returns true, meaning the run will build.

Parameters:
combination - A MatrixConfiguration given as its Combination
Returns:
A boolean determining whether or nor to rebuild the Run

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2014. All Rights Reserved.