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

Unable to pass arguments to remote ssh (other than bash)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-plugin

      There is a variable in the build configuration named "topo_name".
      This 'topo_name' variable to be argument of the shell script to be run on the remote server. (Here it is simplified to echo $topo_name).

      Since the remote shell is C shell, it fails to get the argument.
      https://issues.jenkins-ci.org/browse/JENKINS-15265 - fix does NOT solve this.

      Is there any other solution/workaround?

      Logs:
      =====
      Started by user anonymous
      Building in workspace /var/lib/jenkins/jobs/test_ssh/workspace
      executing script:
      SHELL="/bin/bash"
      topo_name="testing" (Fix of JENKINS-15265)

      whoami
      env
      hostname
      echo $SHELL
      echo ${topo_name}
      SHELL=/bin/bash: Command not found. !!! C shell does NOT take the command !!!
      topo_name=testing: Command not found. !!! C shell does NOT take the command !!!
      topo_name: Undefined variable. !!! C shell does NOT take the command !!!
      nkaliape
      USER=nkaliape
      LOGNAME=nkaliape

            Unassigned Unassigned
            nkaliape Narayanan Thottam Kaliaperumal
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: