code: public boolean isRunning() {
          try {
              client.get("/");
              return true;
          } catch (IOException e) {
              LOGGER.debug("isRunning()", e);
              return false;
          }
      }
docs: Get the current status of the Jenkins end-point by pinging it.
  
  @return true if Jenkins is up and running, false otherwise