Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30511

Enject variable into the ssh username

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ssh-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          danielahcardona 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

          Show
          danielahcardona 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
          Hide
          dbollaer 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.

          Show
          dbollaer 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.
          Hide
          danielahcardona 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.

          Show
          danielahcardona 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.

            People

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

              Dates

              Created:
              Updated: