code: public static String getJenkinsVersion(final HttpResponse response) {
          final Header[] hdrs = response.getHeaders("X-Jenkins");
          return hdrs.length == 0 ? "" : hdrs[0].getValue();
      }
docs: Get Jenkins version from supplied response if any.
  @param response the response
  @return the version or empty string