class_docstr: Hook to manage connection to jenkins server.
class_docstr_tok: ["Hook","to","manage","connection","to","jenkins","server","."]
code: def get_latest_build_number(self, job_name) -> int:
      self.log.info(
          "Build number not specified, getting latest build info from Jenkins"
      )
      job_info = self.jenkins_server.get_job_info(job_name)
      return job_info["lastBuild"]["number"]
  
file_path: airflow/airflow/providers/jenkins/hooks/jenkins.py
imports: from __future__ import annotations
  from typing import Any
  import jenkins
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 5 for calling the JenkinsHook obj's underlying member method code with example usage: obj.get_latest_build_number(job_name) and returns: job_info