/** * Verifies that 'b' has completed successfully. */ public void assertBuildCompletedSuccessfully() throws Exception { assertBuildCompletedSuccessfully(b); }
/** * Asserts that {@link #e} is in the suspended state and has nothing more to execute. */ public void assertThatWorkflowIsSuspended() throws Exception { assertThatWorkflowIsSuspended(b, e); }
public void waitForWorkflowToSuspend() throws Exception { waitForWorkflowToSuspend(e); }
/** * Updates p, b, and e variables from the given JenkinsRule */ public void rebuildContext(JenkinsRule j) throws Exception { WorkflowJob p2 = (WorkflowJob) j.jenkins.getItem("demo"); assertNotNull("could not find a job named demo", p2); assert p!=p2; // make sure Jenkins was restarted p = p2; WorkflowRun b2 = p.getLastBuild(); assert b!=b2; b = b2; e = (CpsFlowExecution) b.getExecution(); }
/** @deprecated use {@link JenkinsRule#waitForCompletion} instead */ public void waitForWorkflowToComplete() throws Exception { do { waitForWorkflowToSuspend(e); } while (!e.isComplete()); }