prow/pjutil/tot.go
func PresubmitToJobSpec(pre config.Presubmit) *downwardapi.JobSpec {
	return &downwardapi.JobSpec{
		Type: prowapi.PresubmitJob,
		Job:  pre.Name,
	}
}
func PresubmitToJobSpec(pre config.Presubmit) *downwardapi.JobSpec {
	return &downwardapi.JobSpec{
		Type: prowapi.PresubmitJob,
		Job:  pre.Name,
	}
}
// PresubmitToJobSpec generates a downwardapi.JobSpec out of a Presubmit.
// Useful for figuring out GCS paths when parsing jobs out
// of a prow config.