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

Node parameters in the form node/param should be availabe for substitution in the script tag e.g. for the ssh job

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.10, 1.11
    • 1.11.6, 1.12
    • None

    Description

      Current Situation

      When defining node parameters with n/p the param p is available at the node n. The param p is not available for the substitution or the script tag in the ssh job. There ${p/n} have to specified.

      Example:
      You have a job chain with the node 100 that contains the ssh job. In the script tag of the ssh job you want to use a parameter like ${test} The order has the parameter 100/test. In the script tag the parameter test is unknown.

      Job:

      <job  title="Launch commands or executable files by SSH" order="yes" stop_on_error="no">
          <params >
              <param  name="user" value="test"/>
              <param  name="auth_method" value="password"/>
              <param  name="host" value="192.12.1.222"/>
              <param  name="password" value="12345"/>
          </params>
      
          <script  language="java" java_class="sos.scheduler.job.SOSSSHJob2JSAdapter">
              <![CDATA[
      echo test = ${test}
      echo 100/test = ${100/test}
              ]]>
          </script>
          <run_time />
      </job>
      

      Order:

      <order  job_chain="job_chain1" id="start">
          <params >
              <param  name="100/test" value="value of test"/>
          </params>
          <run_time />
      </order>
      

      Output:

      2017-11-09 17:45:40.119+0100 [info]   (Task jitl-416/ssh:81586) [stdout] test =
      2017-11-09 17:45:40.119+0100 [info]   (Task jitl-416/ssh:81586) [stdout] 100/test = value of test
      

      Desired Behaviour

      The param p from n/p should be available for the substitution in the script tag in the e.g. in the ssh job

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Santiago Aucejo Petzoldt Santiago Aucejo Petzoldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified