Skip to content

Commit

Permalink
[JENKINS-38464] Reproduced in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
amuniz committed Oct 3, 2016
1 parent 6295778 commit b419792
Showing 1 changed file with 19 additions and 0 deletions.
Expand Up @@ -9,6 +9,7 @@
import org.junit.Test;
import org.junit.runners.model.Statement;
import org.jvnet.hudson.test.BuildWatcher;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.RestartableJenkinsRule;

import static org.junit.Assert.*;
Expand Down Expand Up @@ -177,6 +178,24 @@ public void milestoneNotAllowedInsideParallel() {
});
}

@Issue("JENKINS-38464")
@Test
public void milestoneAllowedOutsideParallel() {
story.addStep(new Statement() {
@Override public void evaluate() throws Throwable {
WorkflowJob p = story.j.jenkins.createProject(WorkflowJob.class, "p");
p.setDefinition(new CpsFlowDefinition(
"node {\n" +
" parallel one: { echo 'First' }, two: { \n" +
" echo 'In-node'\n" +
" }\n" +
" milestone 1\n" +
"}"));
story.j.assertBuildStatusSuccess(p.scheduleBuild2(0));
}
});
}

@Test
public void ordinals() {
story.addStep(new Statement() {
Expand Down

0 comments on commit b419792

Please sign in to comment.