com.chikli.hudson.plugin.naginator
Class NaginatorAction

java.lang.Object
  extended by com.chikli.hudson.plugin.naginator.NaginatorAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject
Direct Known Subclasses:
NaginatorMatrixAction

public class NaginatorAction
extends Object
implements hudson.model.BuildBadgeAction


Constructor Summary
NaginatorAction()
          Deprecated. use NaginatorAction(int)
NaginatorAction(int retryCount)
          Deprecated. use NaginatorAction(Run, int, int) instead.
NaginatorAction(hudson.model.Run<?,?> parentBuild, int retryCount, int maxRetryCount)
           
 
Method Summary
 String getDisplayName()
           
 String getIconFileName()
           
 int getMaxRetryCount()
          Returns the maximum number to reschedule.
 Integer getParentBuildNumber()
          Returns the maximum number to reschedule.
 int getRetryCount()
          Returns the number of retry this build is rescheduled for.
 String getUrlName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaginatorAction

@Deprecated
public NaginatorAction()
Deprecated. use NaginatorAction(int)


NaginatorAction

@Deprecated
public NaginatorAction(int retryCount)
Deprecated. use NaginatorAction(Run, int, int) instead.

Parameters:
retryCount - the number of retry this build is rescheduled for.
Since:
1.16

NaginatorAction

public NaginatorAction(@CheckForNull
                       hudson.model.Run<?,?> parentBuild,
                       int retryCount,
                       int maxRetryCount)
Parameters:
parentBuild - the build to retry.
retryCount - the number of retry this build is rescheduled for.
maxRetryCount - the maximum number to retry. Can be 0 for indeterminable cases.
Since:
1.17
Method Detail

getIconFileName

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

getDisplayName

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

getUrlName

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

getRetryCount

public int getRetryCount()
Returns the number of retry this build is rescheduled for. This may be 0 for builds rescheduled with older versions of naginator-plugin.

Returns:
the number of retry this build is rescheduled for.
Since:
1.16

getMaxRetryCount

public int getMaxRetryCount()
Returns the maximum number to reschedule. This may be 0 for builds rescheduled with older versions of naginator-plugin for cases that the build is rescheduled manually, or for cases the maximum number is indeterminable.

Returns:
the maximum number to retry.
Since:
1.17

getParentBuildNumber

@CheckForNull
public Integer getParentBuildNumber()
Returns the maximum number to reschedule. This may be null for builds rescheduled with older versions of naginator-plugin

Returns:
the build number of the build to reschedule.
Since:
1.17


Copyright © 2004-2016. All Rights Reserved.