(pipeline_id)
return jobs
Returns all gitlab job that are not yet successful
Returns all gitlab job that are not yet successful
Returns all gitlab job that are not yet successful
def get_remaining_jobs(pipeline_id):
    """Returns all gitlab job that are not yet successful"""
    scopes = ['created', 'pending', 'running', 'failed', 'canceled']
    all_jobs = []
    for scope in scopes:
        all_jobs.extend(_get_jobs(pipeline_id, scope=scope))

    jobs = [j for j in all_jobs if not j['allow_failure'] and j['stage'] in STAGES_TO_CHECK]
    return jobs
def get_remaining_jobs ( pipeline_id ) : scopes = [ 'created' , 'pending' , 'running' , 'failed' , 'canceled' ] all_jobs = [ ] for scope in scopes : all_jobs . extend ( _get_jobs ( pipeline_id , scope = scope ) ) jobs = [ j for j in all_jobs if not j [ 'allow_failure' ] and j [ 'stage' ] in STAGES_TO_CHECK ] return jobs