code: public HudsonUpgradeJob getHudsonJob() {
          List<UpdateCenterJob> jobList = getJobs();
          Collections.reverse(jobList);
          for (UpdateCenterJob job : jobList)
              if (job instanceof HudsonUpgradeJob)
                  return (HudsonUpgradeJob)job;
          return null;
      }
docs: Returns latest Jenkins upgrade job.
  @return HudsonUpgradeJob or null if not found