// CIJobs returns a list of jobs in a pipeline for a given sha. The jobs are
// returned sorted by their CreatedAt time
CIJobs returns a list of jobs in a pipeline for a given sha. The jobs are
returned sorted by their CreatedAt time
// CIJobs returns a list of jobs in a pipeline for a given sha . The jobs are // returned sorted by their CreatedAt time
func CIJobs(pid interface{}, branch string) ([]*gitlab.Job, error) {
	pipelines, _, err := lab.Pipelines.ListProjectPipelines(pid, &gitlab.ListProjectPipelinesOptions{
		Ref: gitlab.String(branch),
	})
	if len(pipelines) == 0 || err != nil {
		return nil, err
	}
	return PipelineJobs(pid, pipelines[0].ID)
}
func CIJobs ( pid interface { } , branch string ) ( [ ] * gitlab . Job , error ) { pipelines , _ , err := lab . Pipelines . ListProjectPipelines ( pid , & gitlab . ListProjectPipelinesOptions { Ref : gitlab . String ( branch ) , } ) if len ( pipelines ) == 0 || err != nil { return nil , err } return PipelineJobs ( pid , pipelines [ 0 ] . ID ) }
CIJobs returns a list of jobs in a pipeline for a given sha.
CIJobs returns a list of jobs in a pipeline for a given sha .