Skip to content
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

Fixes #365 #548

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Fixes #365 #548

wants to merge 29 commits into from

Conversation

mukundsrinivasb
Copy link

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

My objective
figure out how the cli parameters are read into java , and which .java files parse them. I was under the impression that getPlugins() method in the CliOptions.java file would be responsible for all of it.

I am stuck
Running the jenkins-plugin-cli -p git verboses nothing, however it should verbose the name of the plugin after -p . In this case git.

Relevent links
Relevent Issues

@krisstern
Copy link
Member

Hi @mukundsrinivasb Thanks for your code contribution!

It appears that you have some (namely two) bugs in your code. You can check these out say tat https://github.com/jenkinsci/plugin-installation-manager-tool/pull/548/checks?check_run_id=12083885842, where you have:

  1. io.jenkins.tools.pluginmanager.cli.CliOptionsTest.setupPluginsTest: A Null Pointer Exception at io.jenkins.tools.pluginmanager.util.PluginListParser.isHpi(PluginListParser.java:191)
  2. io.jenkins.tools.pluginmanager.util.PluginListParserTest.parsePluginTxtFileTest: Another Null Pointer Exception at io.jenkins.tools.pluginmanager.util.PluginListParser.isHpi(PluginListParser.java:191)

So it appears if you could handle the NPE exception at io.jenkins.tools.pluginmanager.util.PluginListParser.isHpi(PluginListParser.java:191) properly the failures to build should go away.

@mukundsrinivasb
Copy link
Author

I shall get to it right away

@krisstern
Copy link
Member

Hi @mukundsrinivasb Maybe you should add the line Fixes #365 or Closes #365 to the pull request description so that GitHub will add the issue to the Development section on the pane on the right hand side. And maybe change your pull request title to something like Fixes #365 instead to make it more descriptive.

@mukundsrinivasb mukundsrinivasb changed the title #365 Fixes #365 Mar 19, 2023
@mukundsrinivasb
Copy link
Author

mukundsrinivasb commented Mar 19, 2023

add the line Fixes #365 or Closes #365 to the pull request description so that GitHub will add the issue to the Development section on the pane on the right hand side.

How to check weather this change has taken effect?. Also I've added the fixes #365 to the title

@mukundsrinivasb mukundsrinivasb changed the title Fixes #365 Add support for file:// protocol in plugin URI #365 Mar 19, 2023
@mukundsrinivasb mukundsrinivasb changed the title Add support for file:// protocol in plugin URI #365 Add support for file:// protocol in plugin URI #365 Mar 19, 2023
@krisstern
Copy link
Member

krisstern commented Mar 19, 2023

Your syntax is not correct, it has to be literally Fixes #365 or Closes #365 on its own line in the pull request description. Your issue will show up in the Development section on the right hand side once it has been done properly. Now it is showing None Yet:

Screenshot 2023-03-19 at 12 32 07 PM

@mukundsrinivasb mukundsrinivasb changed the title Add support for file:// protocol in plugin URI #365 Fixes #365 Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants