def get_jenkins_info(jenkins_session, status):
 if status['context'].startswith('jenkins-'):
  jenkins_url = status['target_url']
  project = jenkins_session.get((jenkins_url + JENKINS_BUILD_INFO_PATH)).json()
  return jenkins_info_from_response(project)
 return (None, None)

def get_jenkins_info ( jenkins_session , status ) : if status [ 'context' ] . startswith ( 'jenkins-' ) : jenkins_url = status [ 'target_url' ] project = jenkins_session . get ( ( jenkins_url + JENKINS_BUILD_INFO_PATH ) ) . json ( ) return jenkins_info_from_response ( project ) return ( None , None )
get the jenkins job info for a github status .