Skip to content

Commit

Permalink
Merge pull request #287 from alecharp/fix/fix-workflow-step-api-new-w…
Browse files Browse the repository at this point in the history
…ording-expectation

Fixes invalid context expectation in test
  • Loading branch information
jglick authored Jan 19, 2024
2 parents 0fb18e0 + 277dd4a commit 2b19db7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.387.3</jenkins.version>
<jenkins.version>2.414.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
</properties>
<licenses>
Expand Down Expand Up @@ -51,7 +51,7 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.387.x</artifactId>
<artifactId>bom-2.414.x</artifactId>
<version>2543.vfb_1a_5fb_9496d</version>
<scope>import</scope>
<type>pom</type>
Expand All @@ -70,6 +70,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>655.v6e098b_87b_84f</version> <!-- TODO: Removes once the plugin is updated in the BOM -->
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void widerRequiredContext() throws Throwable {
WorkflowRun b = r.assertBuildStatus(Result.FAILURE, p.scheduleBuild2(0));
r.assertLogNotContains("We should fail before getting here", b);
r.assertLogContains("Required context class hudson.FilePath is missing", b);
r.assertLogContains("Perhaps you forgot to surround the code with a step that provides this, such as: node", b);
r.assertLogContains("Perhaps you forgot to surround the step with a step that provides this, such as: node", b);
});
}

Expand Down

0 comments on commit 2b19db7

Please sign in to comment.