We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05f2741 + 7440ea5 commit 0bd8be5Copy full SHA for 0bd8be5
plugin/src/test/java/org/jenkinsci/plugins/workflow/cps/DSLTest.java
@@ -600,7 +600,10 @@ public void namedSoleParamForStep() throws Exception {
600
p.setDefinition(new CpsFlowDefinition(
601
"stage(name: 'A');\n" +
602
"echo('done')", true));
603
- WorkflowRun b = r.assertBuildStatusSuccess(p.scheduleBuild2(0));
+ WorkflowRun b = r.waitForCompletion(p.scheduleBuild2(0).waitForStart());
604
+ r.assertLogContains(org.jenkinsci.plugins.workflow.support.steps.stage.Messages.StageStepExecution_non_block_mode_deprecated(), b);
605
+ // Special case in DSL.invokeStep:
606
+ r.assertLogNotContains("stage step must be called with a body", b);
607
}
608
609
@Test public void standardStage() throws Exception {
0 commit comments