Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1629

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

    XMLWordPrintable

Details

    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_.
      • Sometimes the export generates a % in the variable name which raises an error
      • For example the environment contains
        BASH_FUNC_mc()=() {  . /usr/share/mc/bin/mc-wrapper.sh
        }'
        

        then the error

        ERROR [main] (SOSSSHJob2.java:169) - SOS-SSH-E-160: remote execution reports error: bash: line 1: export: `SCHEDULER_MASTER_BASH_FUNC_MC%%=() {  . /usr/share/mc/bin/mc-wrapper.sh
        }': not a valid identifier
        

        is raised.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: