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

Publish Over SSH Issue

XMLWordPrintable

      Hello;

      Im trying to execute a unix command over ssh via jenkins, but it doesn't work:

      • Using Publish Over SSH Plugin.
      • After Build Job is successful But the command Returns Nothing.
      • Executing the same command in Putty returns the result.

      Command executed :

      Who -m

      ***************************************

      Démarré par l'utilisateur ********
      Building in workspace d:\Profiles\admin10303\.jenkins\jobs\TFJ\workspace
      SSH: Connecting from host [*******]
      SSH: Connecting with configuration [VM_Root_172.31.47.56] ...
      SSH: EXEC: STDOUT/STDERR from command [who -m] ...
      SSH: EXEC: completed after 401 ms
      SSH: Disconnecting configuration [VM_Root_172.31.47.56] ...
      SSH: Transferred 0 file(s)
      executing script:

      set -x
      who -m
      + who -m
      [SSH] exit-status: 0
      Finished: SUCCESS

        1. Jenkins.png
          Jenkins.png
          79 kB
        2. Putty.png
          Putty.png
          21 kB

            Unassigned Unassigned
            mamengat mohamed amin mengat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: