jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
115 stars 150 forks source link

Cannot be saved properly #336

Closed Liar0320 closed 3 days ago

Liar0320 commented 9 months ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

centos-7.6.1810

Reproduction steps

  1. install plugin
  2. save config

Expected Results

Save Success

Actual Results

image

jenkins  | 2023-12-20 11:29:49.417+0000 [id=20] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 7373d9b8-f599-4379-a8a2-2629c03635c2
jenkins  | java.lang.IllegalArgumentException: The frontend sent an unexpected list of classes (["jenkins.plugins.publish_over_ssh.options.SshOverrideDefaults","jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"]) rather than an expected single class. See https://www.jenkins.io/doc/developer/views/table-to-div-migration/ for more information.
jenkins  |      at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:750)
jenkins  | Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.plugins.publish_over_ssh.options.SshDefaults from {"stapler-class":["jenkins.plugins.publish_over_ssh.options.SshOverrideDefaults","jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"],"$class":["jenkins.plugins.publish_over_ssh.options.SshOverrideDefaults","jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"]}

image

Anything else?

Tried uninstalling and reinstalling, but it doesn't work.

Are you interested in contributing a fix?

No response