File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/test/java/org/jenkinsci/plugins/workflow/cps Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 5555 <scope >import</scope >
5656 <type >pom</type >
5757 </dependency >
58+ <dependency >
59+ <groupId >org.jenkins-ci.plugins</groupId >
60+ <artifactId >pipeline-stage-step</artifactId >
61+ <version >303.v50e56cdd58d9</version > <!-- TODO https://github.com/jenkinsci/pipeline-stage-step-plugin/pull/94 -->
62+ </dependency >
5863 </dependencies >
5964 </dependencyManagement >
6065 <dependencies >
Original file line number Diff line number Diff line change @@ -600,7 +600,10 @@ public void namedSoleParamForStep() throws Exception {
600600 p .setDefinition (new CpsFlowDefinition (
601601 "stage(name: 'A');\n " +
602602 "echo('done')" , true ));
603- WorkflowRun b = r .assertBuildStatusSuccess (p .scheduleBuild2 (0 ));
603+ 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 );
604607 }
605608
606609 @ Test public void standardStage () throws Exception {
You can’t perform that action at this time.
0 commit comments