Package hudson.plugins.timestamper
Class TimestamperConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
hudson.plugins.timestamper.TimestamperConfig
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
@Extension(dynamicLoadable=YES)
@Symbol({"timestamper","timestamperConfig"})
public final class TimestamperConfig
extends GlobalConfiguration
Global configuration for the Timestamper plug-in, as shown on the Jenkins Configure System page.
- Author:
- Frederik Fromm
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondoCheckElapsedTimeFormat
(String elapsedTimeFormat) doCheckSystemTimeFormat
(String systemTimeFormat) static TimestamperConfig
get()
Get the current Timestamper global configuration.Get the format for displaying the elapsed time.Get the format for displaying the system clock time.boolean
void
setAllPipelines
(boolean allPipelines) void
setElapsedTimeFormat
(String elapsedTimeFormat) Set the format for displaying the elapsed time.void
setSystemTimeFormat
(String timestampFormat) Set the format for displaying the system clock time.Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, configure, getDescriptor, getGlobalConfigPage
Methods 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
-
TimestamperConfig
public TimestamperConfig()Constructor.
-
-
Method Details
-
get
Get the current Timestamper global configuration.- Returns:
- the Timestamper configuration, or
null
if Jenkins has been shut down
-
getSystemTimeFormat
Get the format for displaying the system clock time.- Returns:
- the system clock time format
-
setSystemTimeFormat
Set the format for displaying the system clock time.- Parameters:
timestampFormat
- the system clock time format inSimpleDateFormat
pattern
-
doCheckSystemTimeFormat
-
getElapsedTimeFormat
Get the format for displaying the elapsed time.- Returns:
- the elapsed time format
-
setElapsedTimeFormat
Set the format for displaying the elapsed time.- Parameters:
elapsedTimeFormat
- the elapsed time format inDurationFormatUtils
pattern
-
doCheckElapsedTimeFormat
@POST public FormValidation doCheckElapsedTimeFormat(@QueryParameter String elapsedTimeFormat) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
isAllPipelines
public boolean isAllPipelines() -
setAllPipelines
public void setAllPipelines(boolean allPipelines)
-