Class GlobalTimeOutConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
hudson.plugins.build_timeout.global.GlobalTimeOutConfiguration
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,TimeOutProvider
,Loadable
,OnMaster
@Extension
public class GlobalTimeOutConfiguration
extends GlobalConfiguration
implements TimeOutProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) Unchecking the 'Enable Global Timeout' box sends a null object for timeout.global in the json representation of the form submission.boolean
boolean
void
load()
void
setJenkins
(Jenkins jenkins) void
setOperations
(List<BuildTimeOutOperation> operations) void
setOverwriteable
(boolean overwriteable) void
setStrategy
(BuildTimeOutStrategy strategy) timeOutFor
(AbstractBuild<?, ?> build, BuildListener listener) Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
GlobalTimeOutConfiguration
public GlobalTimeOutConfiguration()
-
-
Method Details
-
setJenkins
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) Unchecking the 'Enable Global Timeout' box sends a null object for timeout.global in the json representation of the form submission. Binding this to the current class leaves the previous values. To get around this binding problem, we explicitly null out these fields before saving.- Overrides:
configure
in classGlobalConfiguration
- Parameters:
req
- the request objectjson
- form data as json- Returns:
- always true
-
load
public void load()- Specified by:
load
in interfaceLoadable
- Overrides:
load
in classDescriptor<GlobalConfiguration>
-
timeOutFor
- Specified by:
timeOutFor
in interfaceTimeOutProvider
-
isEnabled
public boolean isEnabled() -
getOverwriteable
public boolean getOverwriteable() -
setOverwriteable
public void setOverwriteable(boolean overwriteable) -
getOperations
- Specified by:
getOperations
in interfaceTimeOutProvider
-
setOperations
-
getStrategy
-
setStrategy
-
getAllStrategies
-
getAllOperations
-