Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-73838] Compatibility for Jenkins#doSafeRestart(StaplerRequest, String) #9797

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

basil
Copy link
Member

@basil basil commented Sep 30, 2024

See JENKINS-73838. Minor flaw in the EE 9 compatibility layer: Jenkins#doSafeRestart(StaplerRequest, String) was changed to StaplerRequest2 without providing a compatibility method, resulting in a proprietary plugin failing with:

java.lang.NoSuchMethodError: 'org.kohsuke.stapler.HttpResponse jenkins.model.Jenkins.doSafeRestart(org.kohsuke.stapler.StaplerRequest, java.lang.String)'

Fixed by providing the missing method.

Testing done

Verified that the call to Jenkins#doSafeRestart(StaplerRequest, String) could not be compiled with 2.478 but could be compiled after this PR.

Proposed changelog entries

Restore compatibility with plugins calling Jenkins#doSafeRestart(StaplerRequest, String).

Proposed upgrade guidelines

N/A

Submitter checklist

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

@basil basil added the regression-fix Pull request that fixes a regression in one of the previous Jenkins releases label Sep 30, 2024
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-fix Pull request that fixes a regression in one of the previous Jenkins releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants