jenkinsci / publish-over-ssh-plugin

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

Dynamic and flexible definition of an Alternative Hostname #302

Open phreakadelle opened 1 year ago

phreakadelle commented 1 year ago

My motivation for this PR is to change the static way how hosts are defined. At the moment its required to change the main Jenkins configuration, which requires admin permissions and requires a restart to take effect.

In our projects we would like to be more dynamic on spawning new server instances and more flexible on job creation. Therefore it is required to override/define the hostname inside a build definition.

Let me know what you think, what should be changed and can be made better.

phreakadelle commented 1 year ago

Hey guys, can someone provide some feedback on this PR? Maybe @gmcdonald ?

phreakadelle commented 1 year ago

The builds are failing because of some pipeline error

[2023-07-05T07:52:19.351Z] Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 587c54e8-c72e-4d81-9aa3-242ca458dbe9

[2023-07-05T07:52:19.352Z] java.lang.NoSuchMethodError: No such DSL method 'httpRequest'

@gmcdonald : Gavin, would you be able to help me with this PR to get it merged?