prow/pod-utils/gcs/target.go
func AliasForSpec(spec *downwardapi.JobSpec) string {
	switch spec.Type {
	case prowapi.PeriodicJob, prowapi.PostsubmitJob, prowapi.BatchJob:
		return ""
	case prowapi.PresubmitJob:
		return path.Join(PRLogs, "directory", spec.Job, fmt.Sprintf("%s.txt", spec.BuildID))
	default:
		logrus.Fatalf("unknown job spec type: %v", spec.Type)
	}
	return ""
}
func AliasForSpec(spec *downwardapi.JobSpec) string {
	switch spec.Type {
	case prowapi.PeriodicJob, prowapi.PostsubmitJob, prowapi.BatchJob:
		return ""
	case prowapi.PresubmitJob:
		return path.Join(PRLogs, "directory", spec.Job, fmt.Sprintf("%s.txt", spec.BuildID))
	default:
		logrus.Fatalf("unknown job spec type: %v", spec.Type)
	}
	return ""
}
// AliasForSpec determines the GCS path aliases for a job spec