-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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-64746] public API hudson.model.UpdateCenter.HudsonUpgradeJob constructor signature change #5216
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
@@ -2111,6 +2111,15 @@ public InstallationJob(Plugin plugin, UpdateSite site, Authentication auth) { | |||
this(plugin,site,auth,false); | |||
} | |||
|
|||
/** | |||
* @deprecated use {@code InstallationJob(Plugin, UpdateSite, Authentication, boolean)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated use {@code InstallationJob(Plugin, UpdateSite, Authentication, boolean)} | |
* @deprecated use {@link #InstallationJob(Plugin, UpdateSite, Authentication, boolean)} |
@@ -2111,6 +2111,15 @@ public InstallationJob(Plugin plugin, UpdateSite site, Authentication auth) { | |||
this(plugin,site,auth,false); | |||
} | |||
|
|||
/** | |||
* @deprecated use {@code InstallationJob(Plugin, UpdateSite, Authentication, boolean)} | |||
* @see #InstallationJob(Plugin, UpdateSite, Authentication, boolean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @see #InstallationJob(Plugin, UpdateSite, Authentication, boolean) |
* @deprecated use {@code PluginDowngradeJob(Plugin, UpdateSite, Authentication)} | ||
* @see #PluginDowngradeJob(Plugin, UpdateSite, Authentication) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
* @deprecated use {@code HudsonUpgradeJob(UpdateSite site, Authentication auth)} | ||
* @see #HudsonUpgradeJob(UpdateSite, Authentication) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
* @deprecated use {@code HudsonDowngradeJob(UpdateSite site, Authentication auth)} | ||
* @see #HudsonDowngradeJob(UpdateSite, Authentication) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Co-authored-by: Jesse Glick <[email protected]>
We may merge it in 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process |
public InstallationJob(Plugin plugin, UpdateSite site, org.acegisecurity.Authentication auth, boolean dynamicLoad) { | ||
this(plugin, site, auth.toSpring(), dynamicLoad); | ||
} | ||
|
||
public InstallationJob(Plugin plugin, UpdateSite site, Authentication auth, boolean dynamicLoad) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would also be polite to add @since 2.266
for the Spring overloads.
@@ -2410,6 +2427,15 @@ public String toString() { | |||
* Represents the state of the upgrade activity of Jenkins core. | |||
*/ | |||
public final class HudsonUpgradeJob extends DownloadJob { | |||
|
|||
/** | |||
* @deprecated use {@link HudsonUpgradeJob(UpdateSite site, Authentication auth)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated use {@link HudsonUpgradeJob(UpdateSite site, Authentication auth)} | |
* @deprecated use {@link HudsonUpgradeJob(UpdateSite, Authentication)} |
How is this not a build failure? Hmm…
@@ -2444,6 +2470,15 @@ protected void replace(File dst, File src) throws IOException { | |||
} | |||
|
|||
public final class HudsonDowngradeJob extends DownloadJob { | |||
|
|||
/** | |||
* @deprecated use {@link HudsonDowngradeJob(UpdateSite site, Authentication auth)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated use {@link HudsonDowngradeJob(UpdateSite site, Authentication auth)} | |
* @deprecated use {@link HudsonDowngradeJob(UpdateSite, Authentication)} |
@@ -30,6 +30,7 @@ | |||
import java.util.Map; | |||
import java.util.UUID; | |||
|
|||
import hudson.security.ACL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import hudson.security.ACL; |
… constructor signature change (jenkinsci#5216) Co-authored-by: Jesse Glick <[email protected]> (cherry picked from commit 2c1e839)
… constructor signature change (jenkinsci#5216) Co-authored-by: Jesse Glick <[email protected]> (cherry picked from commit 2c1e839)
See JENKINS-64746.
The breaking change was introduced by #4848
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@jglick
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).