Class CpsThread

    • Method Detail

      • getContextVariables

        public org.jenkinsci.plugins.workflow.cps.ContextVariableSet getContextVariables()
      • getStep

        public org.jenkinsci.plugins.workflow.steps.StepExecution getStep()
      • stop

        public void stop​(Throwable t)
        Stops the execution of this thread. If it's paused to wait for the completion of StepExecution, call StepExecution.stop(Throwable) to give it a chance to clean up.

        If the execution is not inside a step (meaning it's paused in a safe point), then have the CPS thread throw a given Throwable to break asap.