* [JENKINS-64445] - Fix null safety for plugin categories
* Update core/src/main/java/hudson/model/UpdateSite.java
Co-authored-by: Ramon Leon <manuelramonleonjimenez@gmail.com>
* Update core/src/main/java/hudson/model/UpdateSite.java
Co-authored-by: Ramon Leon <manuelramonleonjimenez@gmail.com>
* Omit stacktraces on ClassNotFoundException in PluginStrategy classloading
* Modify implementation to not fill in stacktraces by default
* Apply suggestions from code review
* Restrict withFillInStackTracesOnClassNotFoundException() at Beta API
* [JENKINS-62332] Show when a plugin version newer than offered exists
* Add more obvious label/tag to entries that cannot be installed
Also link to plugin documentation from the detail message
* Also show the list if there are any unavailable updates
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
* Allow plugins to force an update of the UpdateCenter
* Add javadoc to updateDirectlyNow
* [JENKINS-61046] introduce updateDirectlyNow() and updateDirectly()
@oleg-nenashev notes that the public API should not expose the security
option that is for testing. Introduced updateDirectlyNow() as the new
API and updateDirectly() to have a mirror and deprecated
updateDirectly(boolean) as a consequence.
* fix javadoc grammar
fixes the grammar of the UpdateSite#updateDirectlyNow javadoc
Co-Authored-By: Raihaan Shouhell <raihaanhimself@gmail.com>
Co-authored-by: Raihaan Shouhell <raihaanhimself@gmail.com>
* Add new module optional-depender and a new failing test
* Variant plugin is a dependency of optional-depender
Optional-depender contains the following class
@OptionalExtension(requirePlugins = {"dependee"})
public class OptionalDependerExtension {
private static void foo(Dependee d) {
}
}
* [JENKINS-60449] Move plugin initialization at the end, keep only one extension refresh
* Improve logic to detect classloading issues
Inspect all declared constructors/methods/fields recursively to exclude
failing classes from Guice rather than have Guice explode.
This also fix the failing test, but the previous commit is still better
because it avoids an extra Jenkins.get().refreshExtensions() call.
* Only test resolveClass method if the classloader is not the bootstrap one
* [JENKINS-36720]: Fixed Spotbugs issues WMI_WRONG_MAP_ITERATOR and OS_OPEN_STREAM in core
* merged try with resources with try finally
* reverted auto format from IDE
* reverted auto format from IDE
* use Util.fileToPath() as suggested to remove catch block
* merged try statements
* merged try statements
* reverted some whitespace fixes
* reverted another whitespace fix
* Apply suggestions from code review
Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
* reverted change
* reverted change
* reverted change
Co-authored-by: Oleg Nenashev <o.v.nenashev@gmail.com>