def job_config_path
      user_override = Janky.jobs_config_dir.join("#{job_template.downcase}.xml.erb") if job_template
      custom = Janky.jobs_config_dir.join("#{name.downcase}.xml.erb")
      default = Janky.jobs_config_dir.join("default.xml.erb")

      if user_override && user_override.readable?
        user_override
      elsif custom.readable?
        custom
      elsif default.readable?
        default
      else
        raise Error, "no config.xml.erb template for repo #{id.inspect}"
      end
    end
def job_config_path
      user_override = Janky.jobs_config_dir.join("#{job_template.downcase}.xml.erb") if job_template
      custom = Janky.jobs_config_dir.join("#{name.downcase}.xml.erb")
      default = Janky.jobs_config_dir.join("default.xml.erb")

      if user_override && user_override.readable?
        user_override
      elsif custom.readable?
        custom
      elsif default.readable?
        default
      else
        raise Error, "no config.xml.erb template for repo #{id.inspect}"
      end
    end
The path of the Jenkins configuration template. Try
 "<job_template>.xml.erb" first, "<repo-name>.xml.erb" second, and then
 fallback to "default.xml.erb" under the root config directory.

 Returns the template path as a Pathname.