Interface ChainStageResult

    • Method Detail

      • getSortedBuildResults

        @NotNull
        @NotNull List<BuildResultsSummary> getSortedBuildResults()
        Returns all the BuildResultsSummary with this Stage result ordered by build name. WARNING: Dont use in performance critical situations.
        Returns:
        results
      • isPending

        boolean isPending()
      • isCompleted

        boolean isCompleted()
      • isAllJobsExist

        boolean isAllJobsExist()
        Returns:
        true iff all the jobs in this stage result still exist
        Since:
        6.9
      • isAllNotSuccessfulJobsExist

        boolean isAllNotSuccessfulJobsExist()
        Returns:
        true iff all the jobs in this stage result that are not finished successfully still exist
        Since:
        6.9
      • isSuccessful

        boolean isSuccessful()
      • isFailed

        boolean isFailed()
      • isFinished

        boolean isFinished()
      • isManual

        boolean isManual()
        Checks if result as manual (at the time of result creation) Manual means stage execution is hold and waits for user interaction
        Returns:
        true if manual
      • setManual

        void setManual​(boolean manual)
        Marks result as optional (at the time of result creation) Manual means stage execution is hold and waits for user interaction
      • isFinal

        boolean isFinal()
      • setFinal

        void setFinal​(boolean finalStage)
      • isRunnable

        boolean isRunnable()
        Checks if current stage if first manual stage waiting for execution (chain is completed on previous stage and waiting for this stage to execute)
        Returns:
        true if stage is ready and allowed for manual execution
      • isRestartable

        boolean isRestartable()
        Checks if plan nas been failed and could be restarted on the stage where failed
      • isNotBuilt

        boolean isNotBuilt()
        Checks if the stage has unbuilt jobs inside it
        Returns:
      • getProcessingDuration

        long getProcessingDuration()
        Processing duration of stage (time of longest job in stage execution)
        Returns:
      • setProcessingDuration

        void setProcessingDuration​(long processingDuration)
        Parameters:
        processingDuration -
      • getManualVariables

        @NotNull
        @NotNull List<StageVariableContext> getManualVariables()
        Get manual variables that were set before this stage started. This contains only the variables that changed compared to the previous stage.
        Since:
        5.7
      • addManualVariable

        void addManualVariable​(@NotNull
                               @NotNull StageVariableContext stageVariableContext)