Package hudson.init

Enum TermMilestone

  • All Implemented Interfaces:
    Serializable, Comparable<TermMilestone>, org.jvnet.hudson.reactor.Milestone

    public enum TermMilestone
    extends Enum<TermMilestone>
    implements org.jvnet.hudson.reactor.Milestone
    Various key milestone in the termination process of Jenkins.

    Plugins can use these milestones to execute their tear down processing at the right moment (in addition to defining their own milestones by implementing Milestone.

    These milestones are achieve in this order.

    Author:
    Kohsuke Kawaguchi
    • Enum Constant Detail

      • STARTED

        public static final TermMilestone STARTED
        The very first milestone that gets achieved without doing anything. This is used in Initializer.after() since annotations cannot have null as the default value.
      • COMPLETED

        public static final TermMilestone COMPLETED
        The very last milestone This is used in Initializer.before() since annotations cannot have null as the default value.
    • Method Detail

      • values

        public static TermMilestone[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TermMilestone c : TermMilestone.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TermMilestone valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • ordering

        public static org.jvnet.hudson.reactor.TaskBuilder ordering()
        Creates a set of dummy tasks to enforce ordering among TermMilestones.