-
-
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
Terminology: Clean up X-to-Y-Callables #5494
Conversation
@@ -1117,8 +1117,8 @@ public void copyFrom(FileItem file) throws IOException, InterruptedException { | |||
* <strong>Warning:</strong> implementations must be serializable, so prefer a static nested class to an inner class. | |||
* | |||
* <p> | |||
* Subtypes would likely want to extend from either {@link MasterToSlaveCallable} | |||
* or {@link SlaveToMasterFileCallable}. | |||
* Subtypes would likely want to extend from either {@link jenkins.ControllerToAgentFileCallable} |
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.
I think this was wrong before, since this discusses FileCallable
s.
|
||
/** | ||
* Convenient {@link Callable} that are meant to run on the controller (sent by agent/CLI/etc). | ||
* Note that any serializable fields must either be defined in your plugin or included in the stock JEP-200 whitelist. |
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.
I consider cleanup of this term in comments out of scope for this PR.
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.
🚀 Nice way(s) to keep compatibility
(not manually tested)
* @since 1.587 / 1.580.1 | ||
* @param <T> the return type; note that this must either be defined in your plugin or included in the stock JEP-200 whitelist | ||
* @deprecated Use {@link ControllerToAgentFileCallable} |
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.
Do we want to add something like:
@since 1.587 / 1.580.1, deprecated since TODO
?
(mimic the @Deprecated(since = xxx)
from Java 9)
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.
Should be OK. Thanks Daniel!
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 |
On-holding, makes no sense to merge before the one with the labels. |
Related to #5425. I'm submitting this in a separate PR because I expect potential issues in review and don't think this should end up blocking the other PR.
This cleans up callable class names involved in the agent-to-controller security subsystem.
Existing types are retained as subclasses of the new ones (similar to
Hudson extends Jenkins
), but deprecated.Proposed changelog entries
SlaveToMaster[File]Callable
,MasterToSlave[File]Callable
,Role.MASTER
andRole.SLAVE
in favor of the newAgentToController[File]Callable
,ControllerToAgent[File]Callable
,Role.CONTROLLER
andRole.AGENT
.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
@mention
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).