def METHOD_NAME(
    self, pipeline_name, repository_name: str, repository_location: str
) -> Optional[GraphOrError]:
    """
    Get all the jobs for a pipeline
    """
    try:
        parameters = {
            "selector": {
                "graphName": pipeline_name,
                "repositoryName": repository_name,
                "repositoryLocationName": repository_location,
            }
        }
        jobs = self.client._execute(  # pylint: disable=protected-access
            query=GRAPHQL_QUERY_FOR_JOBS, variables=parameters
        )
        jobs = GraphOrErrorModel.parse_obj(jobs)
        return jobs.graphOrError
    except Exception as err:
        logger.debug(traceback.format_exc())
        logger.error(f"Error while getting jobs {pipeline_name} - {err}")
    return None