Package 

Enum ExecutionStatus

  • All Implemented Interfaces:
    java.lang.CharSequence

    
    public enum ExecutionStatus
     implements CharSequence
                        

    Execution Status enumerations used for executions and stages.

    Note: we implement CharSequence to allow simple SpEL expressions such as: { #stage('s1').status == 'SUCCEEDED' }

    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutionStatus(boolean complete, boolean halt)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NOT_STARTED

      The task has yet to start.

      RUNNING

      The task is still running and the {@code Task} may be re-executed in order to continue.

      PAUSED

      The task is still running and the {@code Task} may be resumed in order to continue.

      SUSPENDED

      The task is complete but the pipeline should now be stopped pending a trigger of some kind.

      SUCCEEDED

      The task executed successfully and the pipeline may now proceed to the next task.

      FAILED_CONTINUE

      The task execution failed, but the pipeline may proceed to the next task.

      TERMINAL

      The task failed and the failure was terminal. The pipeline will not progress any further.

      CANCELED

      The task was canceled. The pipeline will not progress any further.

      REDIRECT

      The step completed but is indicating that a decision path should be followed, not the default path.

      STOPPED

      The task was stopped. The pipeline will not progress any further.

      SKIPPED

      The task was skipped and the pipeline will proceed to the next task.

      BUFFERED

      The task is not started and must be transitioned to NOT_STARTED.

    • Method Summary

      Modifier and Type Method Description
      final boolean isComplete() Indicates that the task/stage/pipeline has finished its work (successfully or not).
      final boolean isHalt() Indicates an abnormal completion so nothing downstream should run afterward.
      boolean isSuccessful()
      boolean isFailure()
      int length()
      char charAt(int index)
      CharSequence subSequence(int start, int end)
      • Methods inherited from class java.lang.CharSequence

        charAt, chars, codePoints, compare, length, subSequence, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutionStatus

        ExecutionStatus(boolean complete, boolean halt)
    • Method Detail

      • isComplete

         final boolean isComplete()

        Indicates that the task/stage/pipeline has finished its work (successfully or not).

      • isHalt

         final boolean isHalt()

        Indicates an abnormal completion so nothing downstream should run afterward.

      • charAt

         char charAt(int index)