@classmethod
    def get_build_step_for_job(cls, job_id):
        jobplan = cls.query.filter(
            cls.job_id == job_id,
        ).first()
        if jobplan is None:
            return None, None

        steps = jobplan.get_steps()
        try:
            step = steps[0]
        except __HOLE__:
            return jobplan, None

        return jobplan, step.get_implementation()
dataset/ETHPy150Open dropbox/changes/changes/models/jobplan.py/JobPlan.get_build_step_for_job