-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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-69487] prevent uninstalled detached plugins get reinstalled #8634
base: master
Are you sure you want to change the base?
Conversation
when a detached plugin gets uninstalled a marker file is created so that on next startup it will not be installed again. e.g. the javax-mail-api plugin is loaded frequently but usually not needed by most older plugins.
Some questions:
|
Looks fine to be always active
it would be nice yeah in these systems plugins are generally not touched manually and are fully defined in code. |
Thanks for looking into this! How does it behave when you're installing new plugins, or just updating existing plugins, with implicit dependencies? At least in the new plugin case, I'd expect the implicit dependency to get installed (otherwise too unsafe, admin's decision can be assumed to be scoped to the set of plugins installed when they decided to uninstall), but if it behaves the same when updating an existing plugin, it'll get annoying quickly if plugins with slightly older core dependencies are actively maintained. |
At the moment the plugin would always be ignored. Maybe we can show a message after installing new plugins, that there are plugins that have been uninstalled and which where not installed. Though such a message might be missed when one directly leaves the page with the installation status. |
We don't know what we'll remove in the future. There are Jira issue suggesting we rip out
|
/** | ||
* List of detached plugins that should not be installed as implied dependency. | ||
*/ | ||
@SuppressFBWarnings(value = "MS_MUTABLE_COLLECTION_PKGPROTECT", justification = "for script console") |
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.
Can be private if that's the problem, the script console doesn't care about visibility.
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Please take a moment and address the merge conflicts of your pull request. Thanks! |
when a detached plugin gets uninstalled a marker file is created so that on next startup it will not be installed again.
e.g. the javax-mail-api plugin is loaded frequently but usually not needed by most older plugins.
See JENKINS-69487
also JENKINS-72195
Testing done
added unit tests validating the behaviour
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist