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

Order successfull when a pre/postprocessing script is used

    XMLWordPrintable

Details

    Description

      An order always is handled as successfull execution when a pre/postprocessing script is used. Even, when the script is empty or just returns true. The configuration below reproduces the error.
      This error only occurres when using API-Jobs with pre/postprocessing.

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <job order="yes"
      stop_on_error="no"
      name="x">
      <description>
      <include file="jobs/JobSchedulerSSHJob.xml"/>
      </description>
      <script language="javascript"
      java_class_path="">
      <![CDATA[
      function spooler_process(){

      return false;
      }
      ]]>
      </script>
      <monitor name="process0"
      ordering="0">
      <script language="javascript">
      <![CDATA[
      function spooler_process_before(){
      return true;
      }
      ]]>
      </script>
      </monitor>
      <run_time/>
      </job>

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <job title="Launch commands or executable files by SSH"
      order="yes"
      stop_on_error="no"
      name="y">
      <description>
      <include file="jobs/SOSSSHJob2JSAdapter.xml"/>
      </description>
      <params/>
      <script language="shell"
      java_class_path="">
      <![CDATA[
      echo y
      ]]>
      </script>
      <run_time/>
      </job>

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <config>
      <jobs>
      <job order="yes"
      stop_on_error="no"
      name="x">
      <description>
      <include file="jobs/JobSchedulerSSHJob.xml"/>
      </description>

      <script language="javascript"
      java_class_path="">
      <![CDATA[
      function spooler_process(){

      return false;
      }
      ]]>
      </script>

      <monitor name="process0"
      ordering="0">
      <script language="javascript">
      <![CDATA[
      function spooler_process_before(){
      return true;
      }
      ]]>
      </script>
      </monitor>

      <run_time/>
      </job>

      <job title="Launch commands or executable files by SSH"
      order="yes"
      stop_on_error="no"
      name="y">
      <description>
      <include file="jobs/SOSSSHJob2JSAdapter.xml"/>
      </description>

      <params/>

      <script language="shell"
      java_class_path="">
      <![CDATA[
      echo y
      ]]>
      </script>

      <run_time/>
      </job>
      </jobs>
      <job_chains>
      <job_chain orders_recoverable="yes"
      visible="yes"
      name="job_chain1">
      <job_chain_node state="1"
      job="x"
      next_state="2"
      error_state="error"/>

      <job_chain_node state="2"
      job="y"
      next_state="success"
      error_state="error"/>

      <job_chain_node state="success"/>

      <job_chain_node state="error"/>
      </job_chain>
      </job_chains>
      </config>

      Attachments

        Activity

          People

            ss Stefan Schädlich (Inactive)
            ur Uwe Risse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: