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

    • TimestamperConfig

      public TimestamperConfig()
      Constructor.
  • Method Details

    • get

      public static TimestamperConfig get()
      Get the current Timestamper global configuration.
      Returns:
      the Timestamper configuration, or null if Jenkins has been shut down
    • getSystemTimeFormat

      public String getSystemTimeFormat()
      Get the format for displaying the system clock time.
      Returns:
      the system clock time format
    • setSystemTimeFormat

      public void setSystemTimeFormat(@CheckForNull String timestampFormat)
      Set the format for displaying the system clock time.
      Parameters:
      timestampFormat - the system clock time format in SimpleDateFormat pattern
    • doCheckSystemTimeFormat

      @POST public FormValidation doCheckSystemTimeFormat(@QueryParameter String systemTimeFormat)
    • getElapsedTimeFormat

      public String getElapsedTimeFormat()
      Get the format for displaying the elapsed time.
      Returns:
      the elapsed time format
    • setElapsedTimeFormat

      public void setElapsedTimeFormat(@CheckForNull String elapsedTimeFormat)
      Set the format for displaying the elapsed time.
      Parameters:
      elapsedTimeFormat - the elapsed time format in DurationFormatUtils 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)