Skip to content
Permalink
Browse files

[JENKINS-38464] Reproduced in a test

  • Loading branch information...
amuniz committed Oct 3, 2016
1 parent 6295778 commit b4197922a80a9143912fa4553567f8d1222d02d1
Showing with 19 additions and 0 deletions.
  1. +19 −0 src/test/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneStepTest.java
@@ -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.*;
@@ -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() {

0 comments on commit b419792

Please sign in to comment.
You can’t perform that action at this time.