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.
  • Constructor Details

    • MaintenanceConfiguration

      @DataBoundConstructor public MaintenanceConfiguration()
  • Method Details

    • setInjectRetentionStrategy

      public void setInjectRetentionStrategy(boolean injectRetentionStrategy)
    • isInjectRetentionStrategy

      public boolean isInjectRetentionStrategy()
    • getInstance

      public static MaintenanceConfiguration getInstance()
    • doInject

      @POST public org.kohsuke.stapler.HttpResponse doInject(org.kohsuke.stapler.StaplerResponse 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.StaplerResponse rsp)
      Called when UI button to remove strategy from all agents is pressed.
      Parameters:
      rsp - Stapler Response
      Returns:
      A HttpResponse