public List<Job> getJobsForPipeline(Object projectIdOrPath, int pipelineId, JobScope scope) throws GitLabApiException {
        GitLabApiForm formData = new GitLabApiForm().withParam("scope", scope).withParam(PER_PAGE_PARAM, getDefaultPerPage());
        Response response = get(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "pipelines", pipelineId, "jobs");
        return (response.readEntity(new GenericType<List<Job>>() {}));
    }
public List < Job > getJobsForPipeline ( Object projectIdOrPath , int pipelineId , JobScope scope ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "scope" , scope ) . withParam ( PER_PAGE_PARAM , getDefaultPerPage ( ) ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipelines" , pipelineId , "jobs" ) ; return ( response . readEntity ( new GenericType < List < Job > > ( ) { } ) ) ; }
Get a list of jobs in a pipeline.

<pre><code>GitLab Endpoint: GET /projects/:id/pipelines/:pipeline_id/jobs</code></pre>

@param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the pipelines for
@param pipelineId the pipeline ID to get the list of jobs for
@param scope the scope of jobs, one of: CREATED, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL
@return a list containing the jobs for the specified project ID and pipeline ID
@throws GitLabApiException if any exception occurs during execution