Class MaintenanceConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
com.sap.prd.jenkins.plugins.agent_maintenance.MaintenanceConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
@Extension
@Symbol("agent-maintenance")
public class MaintenanceConfiguration
extends GlobalConfiguration
The global configuration of the plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoInject(org.kohsuke.stapler.StaplerResponse2 rsp) Called when UI button to inject strategy to all agents is pressed.org.kohsuke.stapler.HttpResponsedoRemove(org.kohsuke.stapler.StaplerResponse2 rsp) Called when UI button to remove strategy from all agents is pressed.static MaintenanceConfigurationbooleanvoidsetInjectRetentionStrategy(boolean injectRetentionStrategy) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
MaintenanceConfiguration
@DataBoundConstructor public MaintenanceConfiguration()
-
-
Method Details
-
setInjectRetentionStrategy
public void setInjectRetentionStrategy(boolean injectRetentionStrategy) -
isInjectRetentionStrategy
public boolean isInjectRetentionStrategy() -
getInstance
-
doInject
@POST public org.kohsuke.stapler.HttpResponse doInject(org.kohsuke.stapler.StaplerResponse2 rsp) Called when UI button to inject strategy to all agents is pressed.- Parameters:
rsp- Stapler Response- Returns:
- A HttpResponse
-
doRemove
@POST public org.kohsuke.stapler.HttpResponse doRemove(org.kohsuke.stapler.StaplerResponse2 rsp) Called when UI button to remove strategy from all agents is pressed.- Parameters:
rsp- Stapler Response- Returns:
- A HttpResponse
-