@Extension(optional=true)
public class WorkingHoursConfig
extends jenkins.model.GlobalConfiguration
Constructor and Description |
---|
WorkingHoursConfig()
Default constructor - loads the configuration.
|
Modifier and Type | Method and Description |
---|---|
static WorkingHoursConfig |
get()
Convenience method to get the configuration object.
|
List<TimeRange> |
getBuildTimeMatrix()
Gets the list of included times.
|
String |
getDisplayName()
Gets human readable name.
|
List<ExcludedDate> |
getExcludedDates()
Gets the list of excluded dates.
|
String |
getJobHoldText()
Gets the message to be displayed when the job is blocked
|
void |
setBuildTimeMatrix(List<TimeRange> value)
Sets the list of included times.
|
void |
setCustomJobHoldText(String customJobHoldText)
Sets new string to display when jobs are blocked
|
void |
setExcludedDates(List<ExcludedDate> value)
Sets the list of excluded dates.
|
all, configure, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, 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 WorkingHoursConfig()
public static WorkingHoursConfig get()
public final String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
public List<TimeRange> getBuildTimeMatrix()
public void setBuildTimeMatrix(@CheckForNull List<TimeRange> value)
value
- the list of included times.public List<ExcludedDate> getExcludedDates()
public void setExcludedDates(@CheckForNull List<ExcludedDate> value)
value
- the list of excluded dates.public String getJobHoldText()
public void setCustomJobHoldText(String customJobHoldText)
customJobHoldText
- string to use as the jobHeldDescriptionCopyright © 2016–2020. All rights reserved.