Skip to content
Permalink
Browse files

Merge pull request #89 from jglick/wheezy-JENKINS-40101

[JENKINS-40101] Reproduced bug in test
  • Loading branch information
jglick committed Feb 24, 2017
2 parents 67767f5 + 528e48a commit 2f2486a16bf20a9838624c88fdd03f134f87dec2
Showing with 19 additions and 0 deletions.
  1. +19 −0 src/test/java/org/jenkinsci/plugins/docker/workflow/WithContainerStepTest.java
@@ -269,4 +269,23 @@
});
}

@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 2f2486a

Please sign in to comment.