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

Variables not resolving in SSH Steps plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • ssh-steps-plugin
    • None

      I don't know if this is a bug or I just don't know how to do it.  I'm using version 1.1.1 of the plugin.

       

      In the rest of the jenkinsfile I can refer to variables with ${VARIABLE_NAME}

      However, any variables within the SSH-steps command do not resolve.   Is there any way to feed these SSH-step commands variables?

       

      i.e.

      sshCommand remote: remote, command: "${ssh_cmd}"

       

      This  SSH's and tries to run the command "${ssh_cmd}"  which of course fails.

            nrayapati Naresh Rayapati
            caldarolad Dan Caldarola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: