func PresubmitSpec(p config.Presubmit, refs prowapi.Refs) prowapi.ProwJobSpec {
	pjs := specFromJobBase(p.JobBase)
	pjs.Type = prowapi.PresubmitJob
	pjs.Context = p.Context
	pjs.Report = !p.SkipReport
	pjs.RerunCommand = p.RerunCommand
	if p.JenkinsSpec != nil {
		pjs.JenkinsSpec = &prowapi.JenkinsSpec{
			GitHubBranchSourceJob: p.JenkinsSpec.GitHubBranchSourceJob,
		}
	}
	pjs.Refs = completePrimaryRefs(refs, p.JobBase)

	return pjs
}
func PresubmitSpec(p config.Presubmit, refs prowapi.Refs) prowapi.ProwJobSpec {
	pjs := specFromJobBase(p.JobBase)
	pjs.Type = prowapi.PresubmitJob
	pjs.Context = p.Context
	pjs.Report = !p.SkipReport
	pjs.RerunCommand = p.RerunCommand
	if p.JenkinsSpec != nil {
		pjs.JenkinsSpec = &prowapi.JenkinsSpec{
			GitHubBranchSourceJob: p.JenkinsSpec.GitHubBranchSourceJob,
		}
	}
	pjs.Refs = completePrimaryRefs(refs, p.JobBase)

	return pjs
}
func PresubmitSpec ( p config . Presubmit , refs prowapi . Refs ) prowapi . ProwJobSpec { pjs := specFromJobBase ( p . JobBase ) pjs . Type = prowapi . PresubmitJob pjs . Context = p . Context pjs . Report = ! p . SkipReport pjs . RerunCommand = p . RerunCommand if p . JenkinsSpec != nil { pjs . JenkinsSpec = & prowapi . JenkinsSpec { GitHubBranchSourceJob : p . JenkinsSpec . GitHubBranchSourceJob , } } pjs . Refs = completePrimaryRefs ( refs , p . JobBase ) return pjs }
// PresubmitSpec initializes a ProwJobSpec for a given presubmit job.
PresubmitSpec initializes a ProwJobSpec for a given presubmit job .