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

Agent merges job and order variables case-insensitive

    XMLWordPrintable

Details

    Description

      Current Situation

      • We assume we have an order with a lowercase parameter key which contains an underline, e.g. a_b = "test"
        <order >
            <params >
                <param  name="a_b" value="test"/>
            </params>
            <run_time />
        </order>
        
      • and two jobs which read the parameter where the first runs on the Master and the second on an Agent
        <job  order="yes" stop_on_error="no">
            <params >
                <param  name="A_B"       value="DefaultJobValue"/>
            </params>
            <script  language="shell">
                <![CDATA[
        @echo off
        echo param A_B:   %SCHEDULER_PARAM_A_B%
                ]]>
            </script>
            <run_time />
        </job>
        
      • Both jobs have the same parameter in uppercase in the job configuration.
      • On the master the parameter is substituted
        param A_B:   test
        
      • On the Agent the parameter value from the job configuration is used
        param A_B:   DefaultJobValue
        
      • It works properly if the parameter in the Agent's job is specified in lowercase or is undefined.
      • It works properly if the parameter key does not contain an underline.

      Desired Behavior

      • The parameter should be passed to the Agent's job in the same manner as to the Master's job.
      • Parameter keys should be case insensitive.

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            oh Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: