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

Resumption: SSH job should not raise an error when exporting environment variables in the remote script

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.10.6, 1.11
    • None

    Description

      Current Situation

      • The SSH job exports environment variables of the JobScheduler to the remote script depending on the parameter create_environment_variables = true.
      • These environment variables are prefixed with SCHEDULER_MASTER_.
      • If the parameter command_delimiter is set then this parameter is also used for the exports which raises an error

      For example

      • command_delimiter: %%
      • command: export test="hallo"; echo $test
      • then the following command will be executed
        echo $$%%export SCHEDULER_RETURN_VALUES=sos-ssh-return-values-bae1c60d-7f68-4940-b786-f94edfa836b9.txt%%export test="hallo"; echo $test
        

        and the error

        SOS-SSH-E-160: remote execution reports error: bash: Zeile 0: export: `756%%export': not a valid identifier
        

        is raised.

      Desired Behavior

      • The exports must be separated with ;.
      • The parameter command_delimiter doesn't affects the exports

      Attachments

        Issue Links

          Activity

            People

              sp Santiago Aucejo Petzoldt
              oh Oliver Haufe
              Oliver Haufe Oliver Haufe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: