Class TimestamperConfig

    • Constructor Detail

      • TimestamperConfig

        public TimestamperConfig()
        Constructor.
    • Method Detail

      • 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)
                                               throws IOException,
                                                      javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • 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,
                                                       javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • isAllPipelines

        public boolean isAllPipelines()
      • setAllPipelines

        public void setAllPipelines​(boolean allPipelines)