Interface Chain

    • Method Detail

      • setNotificationSet

        void setNotificationSet​(NotificationSet notificationSet)
      • addNewStage

        @Deprecated
        @NotNull
        @NotNull ChainStage addNewStage​(@NotNull
                                        @NotNull String name,
                                        @NotNull
                                        @NotNull String description,
                                        boolean manual)
        Deprecated.
        since 5.13 use addStage(ChainStage)
        Adds a new stage and returns the stage
        Parameters:
        name -
        description -
        manual -
        Returns:
      • addStage

        void addStage​(@NotNull
                      @NotNull ChainStage chainStage)
      • addStage

        void addStage​(int index,
                      @NotNull
                      @NotNull ChainStage chainStage)
        Add stage at given index.
        Since:
        7.2
      • removeStage

        void removeStage​(long chainStageId)
      • getMaster

        Chain getMaster()
        Description copied from interface: ImmutablePlan
        Return the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.
        Specified by:
        getMaster in interface ImmutableChain
        Specified by:
        getMaster in interface ImmutablePlan
        Returns:
        the master Plan if one exists.
      • getAllStages

        @NotNull
        @NotNull List<ChainStage> getAllStages()
        Get Stages of the Chain

        Note that this includes ChainStages that have been marked for deletion

        Specified by:
        getAllStages in interface ImmutableChain
        Returns:
        unmodifiable list of all stages
      • getAllJobs

        @NotNull
        @NotNull List<Job> getAllJobs()
        Note: Does not include Jobs that are marked for deletion.
        Specified by:
        getAllJobs in interface ImmutableChain
        Returns:
        a list of all Jobs that are currently contained within this chain - no order guaranteed.
      • removeStagesIf

        void removeStagesIf​(@NotNull
                            @NotNull Predicate<ChainStage> predicate)
        Remove all stages matching a predicate.
        Since:
        7.1