prow/pjutil/pjutil.go
func PostsubmitSpec(p config.Postsubmit, refs prowapi.Refs) prowapi.ProwJobSpec {
	pjs := specFromJobBase(p.JobBase)
	pjs.Type = prowapi.PostsubmitJob
	pjs.Context = p.Context
	pjs.Report = !p.SkipReport
	pjs.Refs = completePrimaryRefs(refs, p.JobBase)
	if p.JenkinsSpec != nil {
		pjs.JenkinsSpec = &prowapi.JenkinsSpec{
			GitHubBranchSourceJob: p.JenkinsSpec.GitHubBranchSourceJob,
		}
	}

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

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