From b7f1dd35c846cf5e2f8f8cfee28721548e326bc3 Mon Sep 17 00:00:00 2001 From: Aftab Alam <88653530+itsAftabAlam@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:49:05 +0530 Subject: [PATCH 1/2] updated jenkins.war default path for linux --- .../java/io/jenkins/tools/pluginmanager/config/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-management-library/src/main/java/io/jenkins/tools/pluginmanager/config/Settings.java b/plugin-management-library/src/main/java/io/jenkins/tools/pluginmanager/config/Settings.java index 20f6a2d5..435be111 100644 --- a/plugin-management-library/src/main/java/io/jenkins/tools/pluginmanager/config/Settings.java +++ b/plugin-management-library/src/main/java/io/jenkins/tools/pluginmanager/config/Settings.java @@ -50,7 +50,7 @@ public class Settings { DEFAULT_WAR = "C:\\ProgramData\\Jenkins\\jenkins.war"; DEFAULT_PLUGIN_DIR_LOCATION = "C:\\ProgramData\\Jenkins\\Reference\\Plugins"; } else { - DEFAULT_WAR = "/usr/share/jenkins/jenkins.war"; + DEFAULT_WAR = "/usr/share/java/jenkins.war"; DEFAULT_PLUGIN_DIR_LOCATION = "/usr/share/jenkins/ref/plugins"; } } From 359d8c19c39dbe20b3ecf4506e3c0e59d12fda9e Mon Sep 17 00:00:00 2001 From: Aftab Alam <88653530+itsAftabAlam@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:06:38 +0530 Subject: [PATCH 2/2] Updated default war file location in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41fc176c..833e6d65 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ exit * `--jenkins-version`: (optional) Version of Jenkins to be used. If not specified, the plugin manager will try to extract it from the WAR file or other sources. The argument can be also set using the `JENKINS_VERSION` environment variable. -* `--war` or `-w`: (optional) Path to Jenkins war file. If no war file is entered, will default to /usr/share/jenkins/jenkins.war or C:\ProgramData\Jenkins\jenkins.war, depending on the user's OS. Plugins that are already included in the Jenkins war will only be downloaded if their required version is newer than the one included. +* `--war` or `-w`: (optional) Path to Jenkins war file. If no war file is entered, it will default to a specific location based on user's OS. In case of Windows, it will default to C:\ProgramData\Jenkins\jenkins.war and in case of OS other than Windows, it will default to /usr/share/java/jenkins.war. Plugins that are already included in the Jenkins war will only be downloaded if their required version is newer than the one included. * `--list` or `-l`: (optional) Lists plugin names and versions of: installed plugins (plugins that already exist in the plugin directory), bundled plugins (non-detached plugins that exist in the war file), plugins that will be downloaded (highest required versions of the requested plugins and dependencies that are not already installed), and the effective plugin set (the highest versions of all plugins that are already installed or will be installed) * `--verbose`: (optional) Show additional information about plugin dependencies and the download process * `--hide-security-warnings`: (optional) Hide if any of the user specified plugins have security warnings