-
Notifications
You must be signed in to change notification settings - Fork 211
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
Improve the CLI output when the plugin is already present in the directory #610
Comments
The I think that adding output about existing plugin files to the default (without |
Do check if you will need to account for the case when you have an update |
@MarkEWaite @krisstern but after executing using --verbose command
I am getting a very large log as output |
Yes, that's expected and desirable. When a user wants more information from the output, they request |
@MarkEWaite Using the --verbose argument the tool is showing the plugin is already exist :). Can we add statement in this mode |
I don't see any statement in the output of my Using the plugins.txt file:
and the file #!/bin/bash
# Exploring plugin installation manager tool command line options
#
# https://github.com/jenkinsci/plugin-installation-manager-tool/issues/610
JENKINS_WAR_VERSION=2.431
JENKINS_WAR=jenkins-${JENKINS_WAR_VERSION}.war
PLUGIN_MANAGER_VERSION=2.12.13
PLUGIN_MANAGER_JAR=jenkins-plugin-manager-${PLUGIN_MANAGER_VERSION}.jar
if [ ! -f ../$PLUGIN_MANAGER_JAR ]; then
wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_MANAGER_VERSION}/$PLUGIN_MANAGER_JAR
mv $PLUGIN_MANAGER_JAR ..
fi
if [ ! -d plugins ]; then
mkdir plugins
fi
java -jar ../$PLUGIN_MANAGER_JAR --jenkins-version $JENKINS_WAR_VERSION --latest false --plugin-download-directory plugins --plugin-file plugins.txt --verbose
if [ ! -f ../$JENKINS_WAR ]; then
wget https://get.jenkins.io/war/${JENKINS_WAR_VERSION}/jenkins.war
mv jenkins.war ../$JENKINS_WAR
fi
# JENKINS_HOME=. java -jar ../$JENKINS_WAR and the command line: $ rm -rf plugins
$ bash ./README I received the first time output:
When I ran the second time with the command: $ bash ./README I received the output:
I don't see output in the second run that tells me the instance-identity plugin already exists. |
@MarkEWaite can I create an issue regarding this to add statement in verbose ? Or update this issue |
Updating this issue seems like the best approach to me. |
Thanks |
What feature do you want to see added?
Currently, during the verbose, we cannot get any kind of logs that show whether the plugin is already present in the directory or not.
Current Scenario:
See in this comment: #610 (comment)
Excepted Behaviour:
The verbose should tell the plugin is already present or not in the directory. If the version is different still shows the plugin is already present with this version
The text was updated successfully, but these errors were encountered: