• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-plugin
    • None

      Hello,

      I want to be able to use a parameterized build variable to inject the username in my ssh connection.

      $APPLICATION_USER = "test"
      $APPLICATION_USER @server would become test@server

      I already tried this, but failed. So I am guessing this feature is not yet implemented.

      There could be security problems, in production enviroment if you add a very risky server to manipulate and someone creating builds throws unsafe commands to the ssh server

      Thank you in advance.

          [JENKINS-30511] Enject variable into the ssh username

          Is there any new about? I want to also pass as parammeter the login to the SSH

          Daniel Alejandro Hernández added a comment - - edited Is there any new about? I want to also pass as parammeter the login to the SSH

          Thank you for your feedback and concern.
          I am creating a script to work around this issue.
          You may close this issue, as won't fix. I no longer need it.

          Danny Bollaert added a comment - Thank you for your feedback and concern. I am creating a script to work around this issue. You may close this issue, as won't fix. I no longer need it.

          Sure, I am thinking to buld a .sh script to take some "Secret Text" password from the credentials plugin and pass it to the script as parammeter, and be sure to get this masked by Mask Plugin.

          Daniel Alejandro Hernández added a comment - Sure, I am thinking to buld a .sh script to take some "Secret Text" password from the credentials plugin and pass it to the script as parammeter, and be sure to get this masked by Mask Plugin.

            Unassigned Unassigned
            dbollaer Danny Bollaert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: