prow/jenkins/controller.go
func getJenkinsJobs(pjs []prowapi.ProwJob) []BuildQueryParams {
	jenkinsJobs := []BuildQueryParams{}

	for _, pj := range pjs {
		if pj.Complete() {
			continue
		}

		jenkinsJobs = append(jenkinsJobs, BuildQueryParams{
			JobName:   getJobName(&pj.Spec),
			ProwJobID: pj.Name,
		})
	}

	return jenkinsJobs
}
func getJenkinsJobs(pjs []prowapi.ProwJob) []BuildQueryParams {
	jenkinsJobs := []BuildQueryParams{}

	for _, pj := range pjs {
		if pj.Complete() {
			continue
		}

		jenkinsJobs = append(jenkinsJobs, BuildQueryParams{
			JobName:   getJobName(&pj.Spec),
			ProwJobID: pj.Name,
		})
	}

	return jenkinsJobs
}
func getJenkinsJobs ( pjs [ ] prowapi . ProwJob ) [ ] BuildQueryParams { jenkinsJobs := [ ] BuildQueryParams { } for _ , pj := range pjs { if pj . Complete ( ) { continue } jenkinsJobs = append ( jenkinsJobs , BuildQueryParams { JobName : getJobName ( & pj . Spec ) , ProwJobID : pj . Name , } ) } return jenkinsJobs }
// getJenkinsJobs returns all the Jenkins jobs for all active
// prowjobs from the provided list. It handles deduplication.
getJenkinsJobs returns all the Jenkins jobs for all active prowjobs from the provided list . It handles deduplication .