jenkinsci / publish-over-ssh-plugin

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

Complete compatibility with Jenkins configuration-as-code #301

Open ahallermed opened 1 year ago

ahallermed commented 1 year ago

What feature do you want to see added?

I wish to be able to fully configure the publish-over-ssh-plugin via the configuration-as-code-plugin. Currently, only the following parameters of the common configuration are supported via configuration as code.

  sshPublisher:
    commonConfig:
       disableAllExec: false,
       encryptedPassphrase: ...
       key: ...
       keyPath: ....

Desired behaviour would be that also the ssh server could be added via yaml configuration:

  sshPublisher:
    commonConfig:
       disableAllExec: false,
       encryptedPassphrase: ...
       key: ...
       keyPath: ....
    hostConfig:
      - name: "first server"
        hostname: 123.123.123.123
       username: myuser
       ...
     - name: "second server"
       ....

Links from configuration-as-code-plugin, how to make the extension completely compatible: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/PLUGINS.md

That would help me a lot, as I have several servers to configure and your plugin is perfect for my usecase. Thank you in advance.

Upstream changes

No response

DmytroMorhulDevPro commented 1 month ago

Any updates on above?