[JENKINS-27177] Add new status error_disabling and minor fixes

When there is some problem disabling a plugin (the disabling file cannot
be created) it should be indicated and also reflected in the dependee
plugin.
This commit is contained in:
M Ramon Leon authored and Ramon Leon committed 2018-10-16 11:47:23 +02:00
1 parent 1aa7dbb818
commit 8f239f6ee1
4 files changed
+42 -26

No files matched your search

+1 -1
View File
@@ -1847,7 +1847,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
* @return the list of results for every plugin and their dependant plugins.
* @throws IOException see {@link PluginWrapper#disable()}
*/
public List<PluginWrapper.PluginDisableResult> disablePlugins(PluginWrapper.PluginDisableStrategy strategy, List<String> plugins) throws IOException {
public @NonNull List<PluginWrapper.PluginDisableResult> disablePlugins(PluginWrapper.PluginDisableStrategy strategy, List<String> plugins) throws IOException {
// Where we store the results of each plugin disablement
List<PluginWrapper.PluginDisableResult> results = new ArrayList<>(plugins.size());