Enum LifeCycleState

    • Enum Constant Detail

      • PENDING

        public static final LifeCycleState PENDING
        The build pending status - as long as the build is not queued
      • QUEUED

        public static final LifeCycleState QUEUED
        The build is queued, as long as agent hasn't started the build process
      • IN_PROGRESS

        public static final LifeCycleState IN_PROGRESS
        The build is really building, so once checkout started on agent
      • FINISHED

        public static final LifeCycleState FINISHED
        The Build finished
      • NOT_BUILT

        public static final LifeCycleState NOT_BUILT
        The Build was not built
    • Method Detail

      • values

        public static LifeCycleState[] 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 (LifeCycleState c : LifeCycleState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LifeCycleState 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
      • getInstance

        public static LifeCycleState getInstance​(String state)
        Returns the appropriate enum value from the given state string
        Parameters:
        state -
        Returns:
        LifeCycleState object corresponding to input state
      • getValue

        @NotNull
        public @NotNull String getValue()
      • isPending

        public static boolean isPending​(@Nullable
                                        @Nullable LifeCycleState lifeCycleState)
      • isQueued

        public static boolean isQueued​(@Nullable
                                       @Nullable LifeCycleState lifeCycleState)
      • isWaiting

        public static boolean isWaiting​(@Nullable
                                        @Nullable LifeCycleState lifeCycleState)
      • isActive

        public static boolean isActive​(@Nullable
                                       @Nullable LifeCycleState lifeCycleState)
      • isFinalized

        public static boolean isFinalized​(@Nullable
                                          @Nullable LifeCycleState lifeCycleState)
      • isInProgress

        public static boolean isInProgress​(@Nullable
                                           @Nullable LifeCycleState lifeCycleState)
      • isFinished

        public static boolean isFinished​(@Nullable
                                         @Nullable LifeCycleState lifeCycleState)
      • isNotBuilt

        public static boolean isNotBuilt​(@Nullable
                                         @Nullable LifeCycleState lifeCycleState)
      • isExpectedStateTransition

        public static boolean isExpectedStateTransition​(@Nullable
                                                        @Nullable LifeCycleState oldState,
                                                        @NotNull
                                                        @NotNull LifeCycleState newState)