prow/pod-utils/downwardapi/jobspec.go
func NewJobSpec(spec prowapi.ProwJobSpec, buildID, prowJobID string) JobSpec {
	return JobSpec{
		Type:      spec.Type,
		Job:       spec.Job,
		BuildID:   buildID,
		ProwJobID: prowJobID,
		Refs:      spec.Refs,
		ExtraRefs: spec.ExtraRefs,
		agent:     spec.Agent,
	}
}
func NewJobSpec(spec prowapi.ProwJobSpec, buildID, prowJobID string) JobSpec {
	return JobSpec{
		Type:      spec.Type,
		Job:       spec.Job,
		BuildID:   buildID,
		ProwJobID: prowJobID,
		Refs:      spec.Refs,
		ExtraRefs: spec.ExtraRefs,
		agent:     spec.Agent,
	}
}
// NewJobSpec converts a prowapi.ProwJobSpec invocation into a JobSpec