Skip to content

Commit

Permalink
[FIXED JENKINS-26513] Deserialization error in ExecutorStepExecution.
Browse files Browse the repository at this point in the history
Originally-Committed-As: aac402a592ed8c1e2b6cc4f04a0055c910954a21
  • Loading branch information
jglick committed Feb 27, 2015
1 parent fe4da3f commit 15c1552
Showing 1 changed file with 24 additions and 0 deletions.
Expand Up @@ -81,6 +81,7 @@
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.junit.runners.model.Statement;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.MockQueueItemAuthenticator;
import org.jvnet.hudson.test.RandomlyFails;
Expand Down Expand Up @@ -649,4 +650,27 @@ public static void finish(final boolean terminate) {
});
}

@Issue("JENKINS-26513")
@Test public void executorStepRestart() {
story.addStep(new Statement() {
@Override public void evaluate() throws Throwable {
p = jenkins().createProject(WorkflowJob.class, "demo");
p.setDefinition(new CpsFlowDefinition("node('special') {echo 'OK ran'}"));
startBuilding();
while (!JenkinsRule.getLog(b).contains("Still waiting to schedule task")) {
Thread.sleep(100);
}
}
});
story.addStep(new Statement() {
@Override public void evaluate() throws Throwable {
story.j.createSlave("special", null);
rebuildContext(story.j);
waitForWorkflowToComplete();
assertBuildCompletedSuccessfully();
story.j.assertLogContains("OK ran", b);
}
});
}

}

0 comments on commit 15c1552

Please sign in to comment.