Refactor jenkins_builds. Pass failed_jobs only.