Skip to content

Conversation

alecharp
Copy link
Member

The workflow-step-api plugin changed the wording on the invalid context error. It has to be updated here as well.
cc @jglick

Testing done

Running the test with only the pom update and then updated the text string expectation.
This is a follow of jenkinsci/workflow-step-api-plugin#143 and coming from jenkinsci/bom#2846

### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@alecharp alecharp requested a review from a team as a code owner January 19, 2024 16:31
Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better still to update

throw new MissingContextVariableException(FilePath.class);
to the new constructor. I can do that as a follow-up though.

<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 -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW I have adopted the convention of putting overrides like this into dependencyManagement, mainly so that they are textually right next to the bom-* dep and thus apparent when evaluating Dependabot bumps that would allow the override to be deleted.

@jglick jglick merged commit 2b19db7 into jenkinsci:master Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants