Skip to content

Commit

Permalink
[JENKINS-40101] Reproduced bug in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Feb 13, 2017
1 parent 68c1fd6 commit 528e48a
Showing 1 changed file with 19 additions and 0 deletions.
Expand Up @@ -269,4 +269,23 @@ public class WithContainerStepTest {
});
}

@Ignore("TODO reproducible")
@Issue("JENKINS-40101")
@Test public void wheezy() {
story.addStep(new Statement() {
@Override public void evaluate() throws Throwable {
DockerTestUtil.assumeDocker();
WorkflowJob p = story.j.jenkins.createProject(WorkflowJob.class, "prj");
p.setDefinition(new CpsFlowDefinition(
"node {\n" +
" withDockerContainer('debian:wheezy') {\n" +
" sh 'sleep 30s && echo ran OK'\n" +
" }\n" +
"}", true));
WorkflowRun b = story.j.assertBuildStatusSuccess(p.scheduleBuild2(0));
story.j.assertLogContains("ran OK", b);
}
});
}

}

0 comments on commit 528e48a

Please sign in to comment.