In Jenkins, I am using SSH Plugin to run shell commands on a remote machine via ssh. I have added my SSH sites to global configuration. But under "Execute shell script on remote host using ssh" section of my Jobs configuration, instead of just selecting one of the SSH sites from the drop down, I would like to consume a build parameter. This way I would like to generalize this job to remote to different environments depending on my requirements.
Is there a way to parameterize ssh site drop down? Or achieve my requirement in a different way?
BTW one option I already have is, to have ssh to remote machine as part of the script and execute it there.
It is possible to parameterize the SSH server. Refer this post for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With