def upload_results(job, checkout, results_dir)

      res_file = detect_res_file(results_dir) || process_xunit_results(results_dir)
      
      if res_file
        @log.info("Res file found")
      
        begin
          Res.submit_results(
            reporter: :hive,
            ir: res_file,
            job_id: job.job_id
          )
        rescue => e
          @log.warn("Res Hive upload failed #{e.message}")
        end
      
        begin
          if conf_file = testmine_config(checkout)
            Res.submit_results(
              reporter: :testmine,
              ir: res_file,
              config_file: conf_file,
              hive_job_id: job.job_id,
              version: job.execution_variables.version,
              target: job.execution_variables.queue_name,
              cert: Chamber.env.network.cert,
              cacert: Chamber.env.network.cafile,
              ssl_verify_mode: Chamber.env.network.verify_mode
            )
          end
        rescue => e
          @log.warn("Res Testmine upload failed #{e.message}")
        end

        begin
          if conf_file = lion_config(checkout)
            Res.submit_results(
                reporter: :lion,
                ir: res_file,
                config_file: conf_file,
                hive_job_id: job.job_id,
                version: job.execution_variables.version,
                target: job.execution_variables.queue_name,
                cert: Chamber.env.network.cert,
                cacert: Chamber.env.network.cafile,
                ssl_verify_mode: Chamber.env.network.verify_mode
            )
          end
        rescue => e
          @log.warn("Res Lion upload failed #{e.message}")

          end




        # TODO Add in Testrail upload
      
      end
      
    end
def upload_results(job, checkout, results_dir)

      res_file = detect_res_file(results_dir) || process_xunit_results(results_dir)
      
      if res_file
        @log.info("Res file found")
      
        begin
          Res.submit_results(
            reporter: :hive,
            ir: res_file,
            job_id: job.job_id
          )
        rescue => e
          @log.warn("Res Hive upload failed #{e.message}")
        end
      
        begin
          if conf_file = testmine_config(checkout)
            Res.submit_results(
              reporter: :testmine,
              ir: res_file,
              config_file: conf_file,
              hive_job_id: job.job_id,
              version: job.execution_variables.version,
              target: job.execution_variables.queue_name,
              cert: Chamber.env.network.cert,
              cacert: Chamber.env.network.cafile,
              ssl_verify_mode: Chamber.env.network.verify_mode
            )
          end
        rescue => e
          @log.warn("Res Testmine upload failed #{e.message}")
        end

        begin
          if conf_file = lion_config(checkout)
            Res.submit_results(
                reporter: :lion,
                ir: res_file,
                config_file: conf_file,
                hive_job_id: job.job_id,
                version: job.execution_variables.version,
                target: job.execution_variables.queue_name,
                cert: Chamber.env.network.cert,
                cacert: Chamber.env.network.cafile,
                ssl_verify_mode: Chamber.env.network.verify_mode
            )
          end
        rescue => e
          @log.warn("Res Lion upload failed #{e.message}")

          end




        # TODO Add in Testrail upload
      
      end
      
    end
Update results