func RootForSpec(spec *downwardapi.JobSpec) string {
	switch spec.Type {
	case prowapi.PeriodicJob, prowapi.PostsubmitJob:
		return path.Join(NonPRLogs, spec.Job)
	case prowapi.PresubmitJob, prowapi.BatchJob:
		return path.Join(PRLogs, "directory", spec.Job)
	default:
		logrus.Errorf("unknown job spec type: %v", spec.Type)
	}
	return ""
}
func RootForSpec(spec *downwardapi.JobSpec) string {
	switch spec.Type {
	case prowapi.PeriodicJob, prowapi.PostsubmitJob:
		return path.Join(NonPRLogs, spec.Job)
	case prowapi.PresubmitJob, prowapi.BatchJob:
		return path.Join(PRLogs, "directory", spec.Job)
	default:
		logrus.Errorf("unknown job spec type: %v", spec.Type)
	}
	return ""
}
// RootForSpec determines the root GCS path for storing artifacts about
// the provided job.