@Extension
public class PeriodicReincarnationGlobalConfiguration
extends jenkins.model.GlobalConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
PeriodicReincarnationGlobalConfiguration.FailureComparator |
Constructor and Description |
---|
PeriodicReincarnationGlobalConfiguration()
Constructor.
|
PeriodicReincarnationGlobalConfiguration(String activeTrigger,
String maxDepth,
String activeCron,
String cronTime,
List<RegEx> regExprs,
List<BuildFailureObject> bfas,
String noChange)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
This method defines what happens when we save to
configuration.
|
hudson.util.FormValidation |
doCheckCronTime(String value)
Check method for the cron time.
|
hudson.util.FormValidation |
doCheckRegExCronTime(String value)
Checks if a cron tab for a given cron could be compiled.
|
hudson.util.FormValidation |
doCheckRegExValue(String value)
Checks if a regular expression entered could be compiled.
|
hudson.util.ListBoxModel |
doFillBfaValueItems()
Fills the Selectbox of a BuildFailure Object with the possible entries,
found in the FailureCause Database
|
static PeriodicReincarnationGlobalConfiguration |
get()
Finds and returns the configuration class.
|
String |
getActiveCron()
Returns the field activeCron.
|
String |
getActiveTrigger()
Returns the field activeTrigger.
|
List<BuildFailureObject> |
getBfas()
Returns a list containing all Build Failure Cause Objects.
|
String |
getCronTime()
Returns the field cron time.
|
int |
getMaxDepth()
returns the maximal number of consecutive afterbuild retries.
|
String |
getNoChange()
Returns the field noChange.
|
List<PeriodicTrigger> |
getPeriodicTriggers()
Returns a list containing all PeriodicTrigger Objects like RegExp or
BuildFailureObject
|
List<RegEx> |
getRegExprs()
Returns a list containing all regular expressions.
|
static boolean |
isBFA()
Determines the existence of the build-failure-analyzer plugin
|
boolean |
isCronActive()
Tells if the cron restart is activated or not.
|
boolean |
isRestartUnchangedJobsEnabled()
See
noChange . |
boolean |
isTriggerActive()
Tells if the afterbuild restart is activated or not.
|
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public PeriodicReincarnationGlobalConfiguration()
@DataBoundConstructor public PeriodicReincarnationGlobalConfiguration(String activeTrigger, String maxDepth, String activeCron, String cronTime, List<RegEx> regExprs, List<BuildFailureObject> bfas, String noChange)
activeTrigger
- shows if plugin trigger restart is enabled.activeCron
- shows if plugin cron restart is enabled.cronTime
- contains the cron time.regExprs
- list of all regular expressions.bfas
- list of all Build Failure Cause ObjectsmaxDepth
- max restart depth.noChange
- shows if no change option is enabled or disabled.public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doCheckCronTime(@QueryParameter String value) throws antlr.ANTLRException, NullPointerException
antlr.ANTLRException
NullPointerException
- cronTime was null.public hudson.util.FormValidation doCheckRegExValue(@QueryParameter String value)
value
- the value of the reg ex to be checked.public hudson.util.FormValidation doCheckRegExCronTime(@QueryParameter String value) throws NullPointerException, antlr.ANTLRException
value
- the value of the cron time to be checked.antlr.ANTLRException
NullPointerException
public static PeriodicReincarnationGlobalConfiguration get()
public hudson.util.ListBoxModel doFillBfaValueItems()
public static boolean isBFA()
public String getNoChange()
public boolean isRestartUnchangedJobsEnabled()
noChange
.public List<RegEx> getRegExprs()
public List<BuildFailureObject> getBfas()
public List<PeriodicTrigger> getPeriodicTriggers()
public String getCronTime()
public String getActiveCron()
public boolean isCronActive()
public String getActiveTrigger()
public boolean isTriggerActive()
public int getMaxDepth()
Copyright © 2016–2019. All rights reserved.