Class ScheduleBuildGlobalConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- org.jenkinsci.plugins.schedulebuild.ScheduleBuildGlobalConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension @Symbol("scheduleBuild") public class ScheduleBuildGlobalConfiguration extends GlobalConfiguration
-
-
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
Constructors Constructor Description ScheduleBuildGlobalConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckDefaultStartTime(String value)
FormValidation
doCheckTimeZone(String value)
ListBoxModel
doFillTimeZoneItems()
String
getDefaultScheduleTime()
ZonedDateTime
getDefaultScheduleTimeObject()
Returns a ZonedDateTime object on the current date in the configured timezone.String
getDefaultStartTime()
String
getTimeZone()
ZoneId
getZoneId()
void
load()
void
setDefaultScheduleTime(String defaultScheduleTime)
void
setDefaultStartTime(String defaultStartTime)
void
setTimeZone(String timeZone)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, 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
-
-
-
-
Method Detail
-
load
public void load()
- Overrides:
load
in classDescriptor<GlobalConfiguration>
-
getDefaultScheduleTime
public String getDefaultScheduleTime()
-
getDefaultStartTime
public String getDefaultStartTime()
-
setDefaultStartTime
@DataBoundSetter public void setDefaultStartTime(String defaultStartTime)
-
setDefaultScheduleTime
@DataBoundSetter public void setDefaultScheduleTime(String defaultScheduleTime) throws ParseException
- Throws:
ParseException
-
getTimeZone
public String getTimeZone()
-
setTimeZone
@DataBoundSetter public void setTimeZone(String timeZone)
-
getZoneId
public ZoneId getZoneId()
-
getDefaultScheduleTimeObject
public ZonedDateTime getDefaultScheduleTimeObject()
Returns a ZonedDateTime object on the current date in the configured timezone.- Returns:
- scheduletime
-
doCheckDefaultStartTime
public FormValidation doCheckDefaultStartTime(@QueryParameter String value)
-
doCheckTimeZone
public FormValidation doCheckTimeZone(@QueryParameter String value)
-
doFillTimeZoneItems
@POST public ListBoxModel doFillTimeZoneItems()
-
-