Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.10, 1.11
-
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