Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-446

SSH Job does not resolve environment variable correctly when set in command parameter

    XMLWordPrintable

    Details

    • Type: Fix
    • Status: Released (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.9, 1.11.6, 1.12.1
    • Fix Version/s: 1.10.10, 1.11.7, 1.12.2
    • Labels:
      None

      Description

      Current Situation

      When using SSH Job with a remote SSH Server on a Windows Operating System the command

      echo MYPARAM=myTestParam >> %SCHEDULER_RETURN_VALUES%

      as described in the documentation doesn´t work when set as the value for the command parameter of the Job. Instead a file is generated on the remote system with the name %SCHEDULER_RETURN_VALUES%.
      If you use the command above in a script file and refer the script file in the parameter command_script_file everything works as expected

      Desired Behavior

      The command should be processed correctly in the same manner as if the command was called through a script file.

      Workaround

      Put the command in a script file and refer the script file in the parameter command_script_file.

      Maintainer Note

      For SSH servers that provide a Windows shell (such as CopSSH and Bitvise SSH Server), make sure that setting environment variables is allowed.
      Setting environment variables is allowed per default for CopSSH and Bitvise SSH Server

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sp Santiago Aucejo Petzoldt
                Reporter:
                sp Santiago Aucejo Petzoldt
                Approver:
                Oliver Haufe
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: